In short
Auth0 configuration export: the file Auth0 writes of its own settings, which a configuration review reads setting by setting without connecting to Auth0.
How to export the Auth0 configuration, step by step, what the review checks in the file (31 checks run), and what it does not read.
| The file | JSON, one file auth0.json, converted by yq from the Deploy CLI’s tenant/tenant.yaml |
|---|---|
| Checks run on it | 31 |
| Highest grade its findings reach | OBSERVED |
| Feeds attack paths | No |
| Not read from this export | 2 areas, listed below |
Sources: Auth0 documentation (1); Auth0 documentation (2); Auth0 documentation (3); the vendor table.
How to export it
- Who can pull it
- A Machine to Machine application with read: permissions on the Auth0 Management API
- Time
- About 15 minutes when the application still has to be created and the Deploy CLI installed; about 2 minutes after that.
- The file
- JSON, one file auth0.json, converted by yq from the Deploy CLI’s tenant/tenant.yaml
No console export: This guide uses the Auth0 Deploy CLI, whose export command fetches the tenant configuration to your computer; the Dashboard steps create, and at the end delete, the application it signs in with.
From the command line
Auth0 Dashboard → Applications → Applications → Create Application: name it (for example CyberTwin read-only export), choose Machine to Machine Applications and click Create. On Authorize Machine to Machine Application, select Auth0 Management API, tick just the permissions that start with read: (none that start with create:, update: or delete:) and click Authorize.
The vendor's page, checked 2026-11-11In that application, copy its Domain and Client ID (Settings tab) and its Client Secret (Credentials tab).
The vendor's page, checked 2026-11-11
The vendor's page, checked 2026-11-11npm install -g auth0-deploy-cli(once; needs Node.js 20.19 or later)
The vendor's page, checked 2026-11-11export AUTH0_DOMAIN=<domain> AUTH0_CLIENT_ID=<client-id> AUTH0_CLIENT_SECRET=<client-secret>(the three values from the step above)
The vendor's page, checked 2026-11-11a0deploy export --format yaml --output_folder ./tenant(fetches the tenant configuration to tenant/tenant.yaml, with folders for Action code, scripts and pages next to it; leave --export_secrets off)
The vendor's page, checked 2026-11-11yq -o=json '.' tenant/tenant.yaml > auth0.json(upload auth0.json)After the upload has gone through, delete the application: Auth0 Dashboard → Applications → Applications → select the application → scroll to the bottom of the Settings page → Danger Zone → Delete, and confirm. Auth0 says this cannot be undone.
The vendor's page, checked 2026-11-11
What the file looks like
JSON, one file auth0.json, converted by yq from the Deploy CLI’s tenant/tenant.yaml. It varies with the number of applications, connections and Actions in the tenant. The upload takes files up to 10 MB.
What it holds: Tenant settings, applications, connections, APIs (resource servers), roles, Actions, multifactor factors, attack protection settings, log streams and custom domains.
The tenant.yaml itself is not read: the review reads JSON, so upload the auth0.json that yq writes. yq here is mikefarah/yq (macOS or Linux with Homebrew: brew install yq). The export also writes folders next to tenant.yaml (Action code, database scripts, pages); they are not uploaded, so delete the whole tenant folder afterwards. The last step deletes the application the export signed in with. Run these commands in bash (macOS, Linux or WSL): in Windows PowerShell 5.1, > writes UTF-16, which jq and the upload refuse.
Afterwards
Delete the application: Auth0 Dashboard → Applications → Applications → the application → Settings → Danger Zone → Delete (Auth0 says this cannot be undone). To keep it for later exports, select Rotate there to change its client secret. Delete the tenant folder and auth0.json from your computer, and clear the client secret from your shell session and history.
If the export goes wrong
| What you see | The fix |
|---|---|
| The export prints "Cannot retrieve <resource> due to missing scopes: read:…" and that part is missing from the file. | The application lacks that read: permission. In the Dashboard go to Applications → APIs, select Auth0 Management API, open the Application Access tab, find your application, select Edit, tick the read: permission named under Client Access, select Save, and run the export again. |
| "a0deploy: command not found", or an error about the Node.js version. | Install Node.js 20.19 or later from nodejs.org, run npm install -g auth0-deploy-cli, open a new terminal and run the export again. |
| The upload refuses tenant.yaml, or yq says it cannot parse the file. | Upload auth0.json, not tenant.yaml. The yq step is written for mikefarah/yq (macOS or Linux with Homebrew: brew install yq); with that yq installed, run the yq step again. |
| npm install -g fails with npm ERR! code EACCES (permission denied) | Skip the global install: after the export AUTH0_DOMAIN=… line, run the export as npx -p auth0-deploy-cli a0deploy export --format yaml --output_folder ./tenant instead, or follow npm’s EACCES page (docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally). |
What we read from it
- Checks run
- 31 + 5 guidance items, not counted
- Formats read
- Tenant settings JSON
- Releases
- 2024.1 to current
Checks run is the number of checks that reached a result on this system's own export in our tests, as the vendor table shows it.
The areas checked
- Tenant settings: development mode, session and idle lifetimes, public signup, brute-force protection
- MFA and password policies on database connections
- Applications: callback URLs, PKCE, token signing, refresh-token rotation
- APIs (audiences, token lifetimes) and the state of each Action
The grade its findings reach
Observed Findings from this file are OBSERVED: read from the system's own export and cited to the setting.
Its findings stay in the review and its reports. Auth0 does not feed attack paths.
Attack paths, the one change and dollar figures are MODELED. How each grade is worked out is on the method page.
What we do not read from this export
- Users, and who holds each role (such as how many hold an admin role): not in this export (the Deploy CLI exports roles and their permissions, not their members)
- Legacy Rules and Hooks
- The code inside each Action
- Branding and prompts (Universal Login customisation)
- Whether a custom domain or a log stream is configured: an empty list in the export does not show whether there is none or the export left them out
- The YAML export: tenant.yaml is not read as-is (upload the auth0.json yq writes)
Limits of the reader
- Findings stay in the review. They do not feed attack paths.
- The checks of this system are not counted: a check counts once a test shows it firing on a file in the layout the vendor documents.
A finding never comes from what the file does not hold: live traffic, running hosts and logs are not in a configuration export.
Questions
Who can export the Auth0 configuration?
A Machine to Machine application authorised for the Auth0 Management API with read: permissions (Auth0 names read:clients as the least it needs; tick every permission that starts with read: so no resource is skipped). Auth0 says the Deploy CLI operates within the set of permissions granted, which is why the application gets no create:, update: or delete: permission. A Dashboard user with the Admin role creates the application.
Does the export change anything?
Creates one Machine to Machine application, with a client secret and a client grant for the Auth0 Management API, in the tenant; it stays until you delete it. The export command fetches configuration and writes local files. On your computer it installs auth0-deploy-cli and writes the tenant folder.
Does the file hold passwords or keys?
With --export_secrets off, the Deploy CLI replaces the secrets it names (connection client_secret, log stream tokens, email provider credentials, CAPTCHA secrets) with markers such as ##SMTP_PASS## and leaves out each application’s client_secret and signing_keys. Other values are written as Auth0 returns them, for example a connection’s options.twilio_token: check the file before you upload. With redaction on (the default), the passwords, keys and tokens the review recognises are replaced with a placeholder before anything is stored; the check before upload shows how many it found.