CasdoorMarketplace

Auth0 Migration · Provider

Move an Auth0 tenant to Casdoor

Casdoor reads the tenant through the Auth0 Management API and previews what would be added before applying it. Users keep their Auth0 user IDs, which are the sub of their tokens, and their links to Google, GitHub and the other social providers; applications keep their client IDs and secrets; organizations become groups. Auth0 only gives password hashes through a support request, so upload that file with the migration to let users keep their passwords.

Verified by CasdoorAuth0MigrationImport
You need a running Casdoor, self-hosted or on Casdoor Cloud. In the examples, replace https://auth.example.com with your Casdoor address (on Casdoor Cloud, something like https://acme.casdoor.com) and the other example.com addresses with your own.

Set up Auth0 Migration with Casdoor

  1. 1

    Create a machine to machine application

    In the Auth0 dashboard, create a Machine to Machine application authorized for the Auth0 Management API with the scopes below. Copy its client ID and client secret.

    Scopesread:users read:clients read:client_keys read:roles read:organizations read:organization_members
  2. 2

    Install Auth0 Migration

    On the Marketplace page of Casdoor, install Auth0 Migration into the organization the tenant goes to.

  3. 3

    Create the migration

    Under Admin > Migrations, add a migration in that organization, choose Auth0 Migration as the action, and set the host to the domain of the tenant (not a custom domain) with the client ID and secret of the application.

    Hostyour-tenant.us.auth0.com
  4. 4

    Upload the password hashes

    Auth0 exports the password hashes of database users only through a support ticket, on paid plans. Upload the file you get with the migration; without it, users of database connections set a new password the first time they sign in to Casdoor.

  5. 5

    Preview and apply

    Click Test connection and Preview to see what would be added and what can't be imported, then Apply. Applying again later only adds what is new, and Undo deletes everything the migration added.

Good to know

  • Users are named after their Auth0 user ID, such as 64b1f... for a database user, and sign in with their email as before.
  • Auth0 doesn't export its signing keys or MFA factors: users sign in again after the switch, and those with MFA enroll again.
  • The report lists the social connections the users signed in with; add the same providers to the Casdoor applications so the links keep working.

Auth0 Migration settings are from its documentation as of November 2026 (Auth0 Management API, Auth0: export password hashes). Auth0 Migration is a trademark of its owner.

Frequently asked questions

Which hosts does the action send requests to?

Only the Auth0 tenant set as the host, for the Management API and the token of the machine to machine application.

Can it import more than 1000 users?

Yes. The Management API returns at most 1000 users of one search, so the action searches by creation time and moves on from the last user of each search.