rollback auth0
Ce contenu n’est pas encore disponible dans votre langue.
Deletes from the tenant the users of a CMF file, each one by the user_id import auth0 gave it: the one in --report’s target_ids, else the one its CMF record leads to (auth0| followed by its target_ids.auth0, else its source_id). Each user is checked to exist first; one that doesn’t is listed as not found. Nothing else is deleted, never a whole connection.
Use it to clear out a rehearsal or a failed migration. With --report, only the users that import created are deleted, not the ones it found already there.
# list what would be deletediamigrate rollback auth0 --in users.cmf.jsonl.gz --report import-report.json --dry-run --domain your-tenant.us.auth0.com --token $AUTH0_TOKEN# deleteiamigrate rollback auth0 --in users.cmf.jsonl.gz --report import-report.json --domain your-tenant.us.auth0.com --token $AUTH0_TOKENA real delete asks for confirmation. When not run interactively (in CI, or with stdin redirected), pass --yes.
The token needs the read:users and delete:users scopes. Calls run on the same worker pool as the import’s organizations and roles phase, which backs off on Auth0’s rate limits.
The rollback report, rollback-report.json alongside --in unless --out says otherwise, lists the users deleted (with their target ID), not_found, and failed (with the error). On a dry run, deleted lists the users that would be.
| Flag | Description |
|---|---|
--in | CMF users.cmf.jsonl.gz or uncompressed users.cmf.jsonl path; gzip is detected automatically (required) |
--report | import-report.json of the import to undo: only its succeeded users are deleted, by its target_ids (optional) |
--out | rollback-report.json output path (default: alongside --in) |
--dry-run | List the users that would be deleted, without deleting them |
--yes, -y | Delete without asking for confirmation (required when not run interactively) |
--domain | Auth0 tenant domain (or $AUTH0_DOMAIN) |
--token | Auth0 Management API token (or $AUTH0_TOKEN) |
--client-id | Machine-to-Machine application client ID (or $AUTH0_CLIENT_ID). Can’t be combined with --token. |
--client-secret | Machine-to-Machine application client secret (or $AUTH0_CLIENT_SECRET) |