Igor
Igorโ€ข3mo ago

Import user from keycloak

Hi everyone! I found an article in the docs about importing a user from keyclock. https://zitadel.com/docs/guides/migrate/sources/keycloak#import-user-to-zitadel-via-zitadel-api So I think this is deprecated. It doesn't support argon2 encryption. Also the /management/v1/users/human/_import endpoint is deprecated. Is there a way to migrate users from keycloak?
ZITADEL Docs
Migrating from Keycloak to ZITADEL
6 Replies
Rajat
Rajatโ€ข3mo ago
hey @Igor were you able to generate the json file?. a file named your_realm_name-realm.json in the keycloak-export directory, containing users and their passwords from keycloak. You can read here when you run the import command, we have a verifier that validatew hashes made with older algorithms ๐Ÿ™‚
Igor
IgorOPโ€ข3mo ago
Hi @Rajat. Yes i tried to create using zitadel-tool, but i got error
Error: create users[0] ID "fcedfd40-dbb9-4c68-9098-befd16900914": unsupported password algorithm: "argon2"
Error: create users[0] ID "fcedfd40-dbb9-4c68-9098-befd16900914": unsupported password algorithm: "argon2"
Command zitadel-tools migrate keycloak --org=325771508733509635 --realm=./key/dev-users-0.json --output=./importBody.json --timeout=1h --multiline maybe i did something wrong
Rajat Singh
Rajat Singhโ€ข3mo ago
Hey @Igor I'll look into this tomorrow Thanks for sharing
Rajat
Rajatโ€ข3mo ago
hey @Igor good morning, can you pls share your dev-users-0.json?. Thanks
Igor
IgorOPโ€ข3mo ago
Hi! sure. I user keyclock latest version. 26.2.0
Rajat
Rajatโ€ข3mo ago
hey @Igor this might help https://github.com/zitadel/zitadel/discussions/8195 ๐Ÿ™‚
GitHub
How to import a user with an argon2id-hashed password ยท zitadel zi...
Hello there! I have a self-hosted Zitadel v 2.52, and I am trying to import a user with a password hashed using argon2id algorithm. I get the following error: Password hash encoding is not supporte...

Did you find this page helpful?