RealmDeployDocs
Migration

Moving from Okta

Export Okta users and groups through the API, convert them for Keycloak, and re-create app integrations. Password users set a new password by email link.

Passwords do not move. Okta's API never returns a password or a hash: the password object in a response is empty. Password users set a new password by email link after the move.

1. Export users and groups

List users with the Users API and follow every next link until there are none:

curl -s "https://<your-org>.okta.com/api/v1/users?limit=200" \
  -H "Authorization: SSWS <api-token>" -H "Accept: application/json"

Put every page's users into one JSON array. For groups, call GET /api/v1/users/{id}/groups per user, or GET /api/v1/groups/{id}/users per group, and add a groups column (names separated by semicolons) if you build a CSV.

2. Convert

Open the Okta to Keycloak users converter. It reads the JSON array, or a CSV with login, email, firstName, lastName and your attribute names. It writes:

  • email, names, createdTimestamp, and enabled: false for SUSPENDED and DEPROVISIONED users (or leaves the deprovisioned out)
  • other profile attributes as attributes, and id as okta_id
  • groups from the column you name
  • UPDATE_PASSWORD for users whose credentials are Okta's own

Okta has no per-user verified flag, so emailVerified is false unless you tick the option.

3. Re-create the rest

In OktaIn Keycloak
OIDC app integrationOIDC client with its redirect URIs and grant types
SAML app integrationSAML client; the app takes Keycloak's metadata and certificate
Authorization server claimsClient scopes and protocol mappers
Identity providersIdentity providers; register the new redirect URI
Sign-on policiesAuthentication flows
Factors, Okta VerifyUsers set up an authenticator app or a passkey again

4. Dry run, then cut over

Import into a staging realm with partial import and sign in through each app. At cut-over, freeze changes in Okta, export again, import, switch the apps and send the set-password emails in batches. Keep the Okta org unchanged until you sign the move off.

The Okta migration page covers what each plan includes.

On this page