# Error HTTP 403 deploying configuration with Monaco

**URL:** <https://community.dynatrace.com/t/error-http-403-deploying-configuration-with-monaco/43739>\
**Category:** Upgrade To Saas\
**Tags:** monaco, upgrade-to-saas\
**Created:** [January 22, 2024, 10:58am UTC](https://community.dynatrace.com/t/error-http-403-deploying-configuration-with-monaco/43739 "2024-01-22T10:58:14Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![erh\_inetum](https://avatars.discourse-cdn.com/v4/letter/e/48db29/32.png) [@erh\_inetum](https://community.dynatrace.com/u/erh_inetum)\
**Post date:** [January 22, 2024, 10:58am UTC](https://community.dynatrace.com/t/error-http-403-deploying-configuration-with-monaco/43739/1 "2024-01-22T10:58:14Z")

</div>

Hi,

We are using Monaco to deploy a configuration.

Firstly, we have validated the configuration using “--dry-run” option. It got successfully:

2024-01-22T11:41:31+01:00 info Validation finished without errors

Then, we launched the deploy but we got the following error:

2024-01-22T11:26:26+01:00 info Projects to be deployed (1):  
2024-01-22T11:26:26+01:00 info - project\_XXX  
2024-01-22T11:26:26+01:00 debug Deploying 748 configurations.  
2024-01-22T11:26:26+01:00 info Environments to deploy to (1):  
2024-01-22T11:26:26+01:00 info - project\_XXX  
2024-01-22T11:26:26+01:00 info Deploying configurations to environment `project_XXX`…  
2024-01-22T11:26:26+01:00 debug Concurrent Request Limit: 5, ‘MONACO\_CONCURRENT\_REQUESTS’ environment variable is NOT set, using default value  
2024-01-22T11:26:26+01:00 info Deploying config project\_XXX:request-attributes:xxxxxxxxxxxxxxxx  
2024-01-22T11:26:26+01:00 error project\_XXX(default) project\_XXX:request-attributes:xxxxxxxxxxxxxxxx deploy.configDeployErr Failed to create DT object accountname (HTTP 403)!  
Response was: {“error”:{“code”:403,“message”:“Token is missing required scope. Use one of: CaptureRequestData (Capture request data)”}}  
Error: errors during Deployment

We suspect that our user hasn´t allow necessary privileges to deploy the configuration, because when we access to the tenant URL we see in the configuration on Request Attribute section the message: “Missing permissions to create or edit request attributes” (screenshot attached)

Could we right?

We are trying to upload a configuration which was deployed on a Managed environment to a SaaS environment.

Thanks in advance.

Regards,

Elena.

 ![requestAttributeConfigDeny.GIF](https://global.discourse-cdn.com/dynatrace/original/3X/f/d/fd97ed58fe059307d7b29bd0959058cbdb6d9190.gif)

---

<div class="post-metadata">

**Author:** ![Mohamed\_Hamdy](https://avatars.discourse-cdn.com/v4/letter/m/7ab992/32.png) [@Mohamed\_Hamdy](https://community.dynatrace.com/u/Mohamed_Hamdy)\
**Post date:** [January 22, 2024, 11:31am UTC](https://community.dynatrace.com/t/error-http-403-deploying-configuration-with-monaco/43739/2 "2024-01-22T11:31:06Z")

</div>

Hi&nbsp;[@erh\_inetum](https://community.dynatrace.com/user/40722)&nbsp;,

the token scope is missing, please make sure that you have the right scope for the token from the SaaS tenant (which you are deploying the configurations)

Response was: {“error”:{“code”:403,“message”:“Token is missing required scope. Use one of: CaptureRequestData (Capture request data)”}}

---

<div class="post-metadata">

**Author:** ![erh\_inetum](https://avatars.discourse-cdn.com/v4/letter/e/48db29/32.png) [@erh\_inetum](https://community.dynatrace.com/u/erh_inetum)\
**Post date:** [January 22, 2024, 11:36am UTC](https://community.dynatrace.com/t/error-http-403-deploying-configuration-with-monaco/43739/3 "2024-01-22T11:36:44Z")

</div>

Hi [@Mohamed\_Hamdy](https://community.dynatrace.com/user/4007)&nbsp;Thanks for your answer.

A question: it’s possible to use the same token for deploy and download commands, right?  
If I try to download the configuration, I can download it perfectly. But I get error when I try to deploy, as you can see.

Regards,

Elena.

---

<div class="post-metadata">

**Author:** ![Mohamed\_Hamdy](https://avatars.discourse-cdn.com/v4/letter/m/7ab992/32.png) [@Mohamed\_Hamdy](https://community.dynatrace.com/u/Mohamed_Hamdy)\
**Post date:** [January 22, 2024, 11:46am UTC](https://community.dynatrace.com/t/error-http-403-deploying-configuration-with-monaco/43739/4 "2024-01-22T11:46:10Z")

</div>

Hi&nbsp;[@erh\_inetum](https://community.dynatrace.com/user/40722)&nbsp;,

you can’t use the same token, the token used to download the configurations is for the Managed environment and now you want to deploy these configurations on the SaaS tenant, then you need to create a new token on the SaaS tenant. also, make sure that the environment URL is changed in the manifest.yaml

---

<div class="post-metadata">

**Author:** ![erh\_inetum](https://avatars.discourse-cdn.com/v4/letter/e/48db29/32.png) [@erh\_inetum](https://community.dynatrace.com/u/erh_inetum)\
**Post date:** [January 22, 2024, 12:55pm UTC](https://community.dynatrace.com/t/error-http-403-deploying-configuration-with-monaco/43739/5 "2024-01-22T12:55:03Z")

</div>

Hi&nbsp;[@Mohamed\_Hamdy](https://community.dynatrace.com/user/4007)

It’s just we’ve done. I detail the steps:

1.- Create token for test and prod Managed environments and SaaS environment

2.- Download the configurations for the two Managed environments (test and prod) and for the SaaS environments using each own token --\> The configuration was downloaded successfully.

3.- Upload test Managed environment configuration in SaaS tenant --\> We receive HTTP 403 error which is the same error we receive in the tenant as you can see on the screenshot attached.

Let me know if something is not clear.

Thanks,

Elena.

---

<div class="post-metadata">

**Author:** ![Mohamed\_Hamdy](https://avatars.discourse-cdn.com/v4/letter/m/7ab992/32.png) [@Mohamed\_Hamdy](https://community.dynatrace.com/u/Mohamed_Hamdy)\
**Post date:** [January 22, 2024, 12:59pm UTC](https://community.dynatrace.com/t/error-http-403-deploying-configuration-with-monaco/43739/6 "2024-01-22T12:59:58Z")

</div>

Hi&nbsp;[@erh\_inetum](https://community.dynatrace.com/user/40722)&nbsp;,

is it possible to share the scope of the token you’ve created to deploy the configurations on the SaaS tenant?

---

<div class="post-metadata">

**Author:** ![erh\_inetum](https://avatars.discourse-cdn.com/v4/letter/e/48db29/32.png) [@erh\_inetum](https://community.dynatrace.com/u/erh_inetum)\
**Post date:** [January 22, 2024, 1:11pm UTC](https://community.dynatrace.com/t/error-http-403-deploying-configuration-with-monaco/43739/7 "2024-01-22T13:11:59Z")

</div>

Hi&nbsp;[@Mohamed\_Hamdy](https://community.dynatrace.com/user/4007)

These are the scopes of the token:

API v2 scopes  
Read network zones  
Write network zones  
Read settings  
Write settings  
Read SLO  
Write SLO  
API v1 scopes  
Access problem and event feed, metrics, and topology  
Read configuration  
Write configuration

Thanks a lot for your help.

Regards,

Elena.

---

<div class="post-metadata">

**Author:** ![erh\_inetum](https://avatars.discourse-cdn.com/v4/letter/e/48db29/32.png) [@erh\_inetum](https://community.dynatrace.com/u/erh_inetum)\
**Post date:** [January 22, 2024, 1:21pm UTC](https://community.dynatrace.com/t/error-http-403-deploying-configuration-with-monaco/43739/8 "2024-01-22T13:21:06Z")

</div>

Hi&nbsp;[@Mohamed\_Hamdy](https://community.dynatrace.com/user/4007)&nbsp;,

You are right.&nbsp;Capture request data scope is missing.

The problem is our user hasn´t privileges to include this scope. So we are going to request to our customer that increasing our privileges to do this.

Thanks a lot for your help.

Regards,

Elena.

---

<div class="post-metadata">

**Author:** ![cullinflynn](https://avatars.discourse-cdn.com/v4/letter/c/c68b51/32.png) [@cullinflynn](https://community.dynatrace.com/u/cullinflynn)\
**Post date:** [October 9, 2024, 2:46pm UTC](https://community.dynatrace.com/t/error-http-403-deploying-configuration-with-monaco/43739/9 "2024-10-09T14:46:36Z")

</div>

How do you scope a token with this permission? I’m not seeing it--even as an admin--when trying to create a new token.

Do I need to use another method, like [request a token via OAuth2 Client](https://docs.dynatrace.com/docs/shortlink/oauth#request-a-token)?

---

<div class="post-metadata">

**Author:** ![erh\_inetum](https://avatars.discourse-cdn.com/v4/letter/e/48db29/32.png) [@erh\_inetum](https://community.dynatrace.com/u/erh_inetum)\
**Post date:** [October 10, 2024, 4:46am UTC](https://community.dynatrace.com/t/error-http-403-deploying-configuration-with-monaco/43739/10 "2024-10-10T04:46:08Z")

</div>

Hi&nbsp;[@cullinflynn](https://community.dynatrace.com/user/75802)&nbsp;,

As far as I remember, you need to belong to “Confidential data admin” [user group environment permission](https://docs.dynatrace.com/docs/shortlink/default-groups-permissions#default-environment-permissions).

As you can see on this [link](https://docs.dynatrace.com/docs/shortlink/role-based-permissions-for-environment-access#environment)&nbsp;permissions to&nbsp;&nbsp;allow configuration of request-attribute capture rules “Manage capturing of sensitive request data” permission is needed:

![erh_inetum_1-1728535347278.png](https://global.discourse-cdn.com/dynatrace/optimized/3X/5/6/561dcfe421efde0a29acce6d5ed9f214e6cc0776_2_690x36.png)

And this account permission is given in “Confidential data admin” group:

 ![erh_inetum_0-1728535270790.png](https://global.discourse-cdn.com/dynatrace/original/3X/4/8/482eda8182c0173ced31670f0a71a811ac596e10.png)

Probably you can´t see this scope because you don´t need the required environment permissions.

Hope it helps.

Regards,

Elena.
