Migrate self-hosted Keycloak to managed hosting
Move the realms you run on your own Keycloak, on Red Hat Single Sign-On or on the Red Hat build of Keycloak to upstream Keycloak on a dedicated cluster. Realms move by export and import, the way Keycloak supports, and users keep their passwords.
Vendor facts checked on · Sources
A full export from Keycloak’s command line holds the realm, its clients and secrets, roles, groups, identity providers, users with their password hashes, and the realm keys. Imported into the same Keycloak version or a newer one, users keep their passwords and tokens keep validating. Custom extensions and themes are the part that does not move.
What moves from your own Keycloak or Red Hat SSO, and what does not
Re-created means we build it again in your realm from your inventory; it does not come out of an export.
Users keep their passwords
Keycloak’s command-line export writes each user with their credentials. Keycloak and Red Hat SSO hash passwords with PBKDF2 by default, and newer Keycloak versions with Argon2; both are hash providers every Keycloak ships, so the hashes verify as they are.
Users sign in once after the switch, because sessions do not move. If you added a custom hash provider of your own, tell us first: clusters run the stock image, so those users would set a new password by email link.
The export
- Keycloak 17 and newer, and the Red Hat build: bin/kc.sh export --dir <dir> --users realm_file --realm <realm>, with the server stopped.
- Red Hat SSO 7.x: start the server once with -Dkeycloak.migration.action=export, the provider, the file and the realm name.
- The admin console’s partial export leaves users out and masks secrets, so it is not enough.
Treat the export as a secret: keep it encrypted, never send it by email or chat, and delete every copy when the move is done.
Moving from your own Keycloak or Red Hat SSO, step by step
- 1
Export
Export each realm from the command line, with users, from a stopped server or a copy of the database, so the export does not race live sign-ins. Do not export master. The file holds hashes, secrets and keys: it travels encrypted, never by email or chat.
- 2
Map
Compare your version with ours: a realm imports into the same version or a newer one. List custom extensions and themes and replace them with built-in features, and list outside connections such as SMTP and LDAP.
- 3
Dry run on a staging copy
Import into a staging copy. Sign in with an existing user and their password through a real client, and check identity providers, roles and token claims.
- 4
Tell your users
Tell users they sign in once again after the switch. Their passwords stay the same.
- 5
Cut over
Lower the DNS TTL a day ahead, freeze changes, export again and import, then point your hostname at the cluster. Changes made after the export do not come across.
- 6
Keep a way back
Rolling back is pointing DNS back at your old Keycloak. Changes made on the cluster after the switch stay behind.
It depends, and on what
We do not give a length without seeing what you run. These are the things that set it.
- How far your version is from ours, and whether Red Hat SSO 7.x needs a step through a newer version first
- Which custom extensions or themes must be replaced before the move
- How large the export is, which sets the import window
- How many applications sign users in, and how many redirect URIs and token claims each needs
- How many social and enterprise identity providers you use, and how quickly each approves a new redirect URI
- How much notice your users need before the switch
- How many people on your side test the dry run, and when
What each plan includes for a move
Support is in writing, through the dashboard and the contact form. There are no calls and no demos.
You move, with our tools and guides
We- Your cluster, ready before you import
- Free converters, a readiness checklist and email templates
- A guide for your source in the docs
- Answers in writing, first response the next business day
- Export from your current system
- Convert and import into a second realm as a dry run (Starter has two)
- Write to your users and switch your apps
We do the move with you, in the plan’s service hours
We- Plan the move with you from your inventory
- Convert users and re-create clients and identity providers
- Import into a staging copy and fix what the dry run finds
- Import into your cluster at cut-over and watch the first hours
- Uses the plan’s 10 service hours a month
- Export from your current system and hand it over encrypted
- Test the dry run with your own apps
- Send the emails to your users and switch your apps
Very large moves, scoped with you
We- Many realms, very many users, or a long period with both systems running
- Scope, sizing and price agreed in writing
- Tell us what you run through the contact form
Prices and the service hours each plan includes are on the pricing page. A move larger than the plan’s hours is scoped with you as Custom.
Tools for this move
They run in your browser; nothing you paste is sent to us. The Self-hosted Keycloak and Red Hat SSO guide in the docs has the commands.
Realm export analyzer
Read a realm export to count clients, roles, users and identity providers and spot custom themes and providers.
Open Free toolRealm export sanitizer
Remove client secrets, credentials and keys from a realm export before you share it.
Open Free toolRealm export diff
Compare two realm exports and see which clients, roles, flows and settings changed.
Open Free toolMigration readiness checklist
A checklist for moving users to Keycloak from Auth0, Okta, Cognito, Azure AD B2C, Firebase or another Keycloak: export, map, dry run, cut-over and rollback.
OpenAbout moving from your own Keycloak or Red Hat SSO
Do my users have to reset their passwords?
No. Password hashes move with the users, so the same passwords keep working. Users sign in once after the switch, because sessions do not move.
Can you move Red Hat Single Sign-On 7.x?
Yes. Its export has the same realm format. We check the version gap in the dry run, because a realm imports into the same version or a newer one.
What about the Red Hat build of Keycloak?
It exports with the same kc.sh command as upstream Keycloak, so the move is the same.
Can I bring custom extensions or themes?
Not yet. Clusters run the stock Keycloak image, so anything custom is replaced or removed before the move.
Will tokens issued before the move still validate?
Yes, while they last, if the hostname stays the same: the realm keys move with the realm.
How long does a move from my own Keycloak take?
It depends on the version gap, custom extensions and the size of the export. We do not give a number without seeing what you run.
Who does the work?
On Premium and Enterprise we do the move with you, within the plan’s 10 service hours a month. On Starter you export and import with our guides, and ask us in writing.
Where the facts on this page come from
Read on 25 November 2026. Vendors change their products: if one of these has, tell us through the contact form and we will correct this page.
Moving from somewhere else
From Auth0
Users, metadata, social logins and apps move. Passwords are set again by email link.
Read the plan New password by email linkFrom Okta
Users, profile attributes, groups and apps move. Passwords are set again by email link.
Read the plan New password by email linkFrom Amazon Cognito
Users, attributes and groups move. Passwords are set again by email link.
Read the plan New password by email linkFrom Azure AD B2C or Entra External ID
Users, sign-in names and extension attributes move. Passwords are set again by email link.
Read the plan New password by email linkFrom Firebase Authentication
Users, custom claims and social logins move. Passwords are set again by email link.
Read the plan Kept with a full exportFrom another Keycloak host
With a full export, realms move whole and users keep their passwords.
Read the planReady to move?
Order a cluster, or write to us first about what you run today.