RealmDeployDocs
Migration

Moving from Auth0

Export your Auth0 users, convert them for Keycloak, and re-create applications and connections. Password users set a new password by email link.

Passwords do not move. Auth0 hashes database passwords with bcrypt, and Keycloak does not ship a bcrypt provider. Database users set a new password by email link after the move. You do not need Auth0's password hash export.

1. Export users

Run a user export job in JSON format (newline-delimited) with the default profile fields and your metadata. Auth0's CSV export cannot hold app_metadata or user_metadata as whole objects, so use JSON.

Note the field that holds groups, such as app_metadata.groups. Auth0's role assignments are not in the user export: if your apps read roles, put them in metadata first or export them separately.

2. Convert

Open the Auth0 to Keycloak users converter and load the file. It runs in your browser and writes:

  • email, emailVerified, firstName, lastName, enabled (from blocked) and createdTimestamp
  • app_metadata and user_metadata as attributes, and user_id as auth0_user_id
  • groups from the field you name
  • requiredActions: ["UPDATE_PASSWORD"] for users with an auth0 (database) identity

Users with only social or enterprise identities get no password step.

3. Re-create the rest

In Auth0In Keycloak
ApplicationClient, with the same callback and logout URLs
API and its scopesClient scopes, and the audience mapper
Social connectionIdentity provider; register its new redirect URI at the provider
Enterprise connectionSAML or OIDC identity provider; your customer updates their side
Actions and RulesMappers, required actions, flow steps, or code in your app
MFA enrollmentsUsers enroll again at first sign-in

4. Dry run, then cut over

Import into a staging realm with partial import. Sign in as a database user (finish the set-password email), a social user and an enterprise user, and check each app's tokens. At cut-over, freeze changes in Auth0, export again, import, switch the apps, and send the set-password emails in batches.

Keep the Auth0 tenant unchanged until you sign the move off: rolling back is switching the apps back.

The Auth0 migration page covers what each plan includes.

On this page