# A0deploy on production tenant not exporting configuration

**URL:** <https://community.auth0.com/t/a0deploy-on-production-tenant-not-exporting-configuration/186664>\
**Category:** Get Help\
**Tags:** guardian, management-api\
**Created:** [May 13, 2025, 12:22pm UTC](https://community.auth0.com/t/a0deploy-on-production-tenant-not-exporting-configuration/186664 "2025-05-13T12:22:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gcarter](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@gcarter](https://community.auth0.com/u/gcarter)\
**Post date:** [May 13, 2025, 12:22pm UTC](https://community.auth0.com/t/a0deploy-on-production-tenant-not-exporting-configuration/186664/1 "2025-05-13T12:22:30Z")

</div>

Hi,

I am trying to export my tenants configuration using the a0deploy tool I have set this up on our development tenant and it works perfectly but on our production tenant I keep getting the following error and I can’t see what is wrong?  
The a0deploy Application has read permissions to everything in the Auth Management API.

```auto
a0deploy --version
8.8.1
a0deploy export -c config-production.json -f yaml -o prod
2025-05-13T12:13:36.546Z - info: To enable experimental early access features use --experimental_ea flag or set AUTH0_EXPERIMENTAL_EA=true in configuration JSON.
2025-05-13T12:13:36.982Z - info: Loading Auth0 Tenant Data
2025-05-13T12:13:37.065Z - info: Retrieving rules data from Auth0
2025-05-13T12:13:37.190Z - info: Retrieving rulesConfigs data from Auth0
2025-05-13T12:13:37.285Z - info: Retrieving hooks data from Auth0
2025-05-13T12:13:37.434Z - info: Retrieving pages data from Auth0
2025-05-13T12:13:37.517Z - info: Retrieving resourceServers data from Auth0
2025-05-13T12:13:37.604Z - info: Retrieving clients data from Auth0
2025-05-13T12:13:37.751Z - info: Retrieving databases data from Auth0
2025-05-13T12:13:38.060Z - info: Reviewing connections for SCIM support. This may take a while...
2025-05-13T12:13:38.286Z - info: Retrieving connections data from Auth0
2025-05-13T12:13:38.352Z - warn: The following tenant flags have not been updated because deemed incompatible with the target tenant: allow_changing_enable_sso, disable_impersonation, new_universal_login_experience_enabled, universal_login
      These flags can likely be removed from the tenant definition file. If you believe this removal is an error, please report via a Github issue.
2025-05-13T12:13:38.352Z - info: Retrieving tenant data from Auth0
2025-05-13T12:13:38.419Z - info: Retrieving emailProvider data from Auth0
2025-05-13T12:13:38.527Z - info: Retrieving emailTemplates data from Auth0
2025-05-13T12:13:38.613Z - info: Retrieving clientGrants data from Auth0
2025-05-13T12:13:38.694Z - info: Retrieving guardianFactors data from Auth0
2025-05-13T12:13:38.754Z - error: Problem running command export
2025-05-13T12:13:38.754Z - error: Problem loading tenant data from Auth0 ManagementApiError: Insufficient privileges to use this deprecated feature.

```

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [May 13, 2025, 6:42pm UTC](https://community.auth0.com/t/a0deploy-on-production-tenant-not-exporting-configuration/186664/3 "2025-05-13T18:42:54Z")

</div>

Hi @gcarter,

Thanks for your question.

I found a GitHub issue regarding the same error you encountered. It looks like a fix was deployed and is now available in version [8.8.2](https://www.npmjs.com/package/auth0-deploy-cli/v/8.8.2).

> <https://github.com/auth0/auth0-deploy-cli/issues/1069#issuecomment-2862470689>
>
> \### Checklist
> 
> \- \[x\] I have looked into the \[README\](https://github.com/auth0/au…th0-deploy-cli#readme) and have not found a suitable solution or answer.
> \- \[x\] I have looked into the \[documentation\](https://github.com/auth0/auth0-deploy-cli#documentation) and have not found a suitable solution or answer.
> \- \[x\] I have searched the \[issues\](https://github.com/auth0/auth0-deploy-cli/issues) and have not found a suitable solution or answer.
> \- \[x\] I have upgraded to the \[latest version\](https://github.com/auth0/auth0-deploy-cli/releases/latest) of this tool and the issue still persists.
> \- \[x\] I have searched the \[Auth0 Community\](https://community.auth0.com/tag/auth0-deploy-cli) forums and have not found a suitable solution or answer.
> \- \[x\] I agree to the terms within the \[Auth0 Code of Conduct\](https://github.com/auth0/open-source-template/blob/master/CODE-OF-CONDUCT.md).
> 
> \### Description
> 
> When trying to export my tenant configuration, I hit the following error:
> 
> \`\`\`sh
> $ a0deploy export --format=yaml --output\_folder=local -d
> 2025-04-14T09:58:50.282Z - debug: Start command export
> 2025-04-14T09:58:50.284Z - info: To enable experimental early access features use --experimental\_ea flag or set AUTH0\_EXPERIMENTAL\_EA=true in configuration JSON.
> 2025-04-14T09:58:50.612Z - info: Loading Auth0 Tenant Data
> 2025-04-14T09:58:50.863Z - info: Retrieving rules data from Auth0
> 2025-04-14T09:58:51.171Z - info: Retrieving rulesConfigs data from Auth0
> 2025-04-14T09:58:51.477Z - info: Retrieving hooks data from Auth0
> 2025-04-14T09:58:52.102Z - info: Retrieving pages data from Auth0
> 2025-04-14T09:58:52.323Z - info: Retrieving resourceServers data from Auth0
> 2025-04-14T09:58:52.596Z - info: Retrieving clients data from Auth0
> 2025-04-14T09:58:53.177Z - info: Retrieving databases data from Auth0
> 2025-04-14T09:58:53.635Z - info: Reviewing connections for SCIM support. This may take a while...
> 2025-04-14T09:58:53.636Z - info: Retrieving connections data from Auth0
> 2025-04-14T09:58:53.842Z - warn: The following tenant flags have not been updated because deemed incompatible with the target tenant: allow\_changing\_enable\_sso, disable\_impersonation, universal\_login, dashboard\_new\_onboarding
> These flags can likely be removed from the tenant definition file. If you believe this removal is an error, please report via a Github issue.
> 2025-04-14T09:58:53.842Z - info: Retrieving tenant data from Auth0
> 2025-04-14T09:58:54.041Z - info: Retrieving emailProvider data from Auth0
> 2025-04-14T09:58:54.384Z - info: Retrieving emailTemplates data from Auth0
> 2025-04-14T09:58:54.607Z - info: Retrieving clientGrants data from Auth0
> 2025-04-14T09:58:54.842Z - info: Retrieving guardianFactors data from Auth0
> 2025-04-14T09:58:55.075Z - error: Problem running command export
> 2025-04-14T09:58:55.075Z - error: Problem loading tenant data from Auth0 ManagementApiError: Insufficient privileges to use this deprecated feature.
> 2025-04-14T09:58:55.077Z - debug: Error: Problem loading tenant data from Auth0 ManagementApiError: Insufficient privileges to use this deprecated feature.
> at YAMLContext.\<anonymous\> (~/.config/yarn/global/node\_modules/auth0-deploy-cli/lib/context/yaml/index.js:144:23)
> at Generator.throw (\<anonymous\>)
> at rejected (~/.config/yarn/global/node\_modules/auth0-deploy-cli/lib/context/yaml/index.js:6:65)
> at process.processTicksAndRejections (node:internal/process/task\_queues:105:5)
> \`\`\`
> 
> I can't find any reference to this specific \`ManagementApiError\` anywhere. The tenant name is \`dev-r26s8bx17l7bi7qp\`, in case there's something about the tenant config that's causing this, but the tenant was only set up in the past few weeks so it seems odd that it would have defaulted into using deprecated features.
> 
> \### Expectation
> 
> I expected the \`export\` command to work.
> 
> \### Reproduction
> 
> Follow the setup steps in \[the documentation\](https://auth0.com/docs/deploy-monitor/deploy-cli-tool#get-started), then run the \`export\` command in the last step. 
> 
> \### Deploy CLI version
> 
> 8.8.0
> 
> \### Node version
> 
> v22.14.0

Let us know if there’s anything else we can do to help.

Cheers,  
Rueben

---

<div class="post-metadata">

**Author:** ![gcarter](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@gcarter](https://community.auth0.com/u/gcarter)\
**Post date:** [May 14, 2025, 8:41am UTC](https://community.auth0.com/t/a0deploy-on-production-tenant-not-exporting-configuration/186664/4 "2025-05-14T08:41:35Z")

</div>

Thank you Rueben, I did download 8.8.2 and can confirm it fixes the issue.

Thanks,

Gareth

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [May 14, 2025, 4:29pm UTC](https://community.auth0.com/t/a0deploy-on-production-tenant-not-exporting-configuration/186664/5 "2025-05-14T16:29:23Z")

</div>

Hi @gcarter,

Thanks for the update and for confirming!

If anything else comes up, please feel free to reach out to us again.

Best regards,  
Rueben

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [May 28, 2025, 4:30pm UTC](https://community.auth0.com/t/a0deploy-on-production-tenant-not-exporting-configuration/186664/6 "2025-05-28T16:30:18Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
