[keycloak-user] How to migrate all users from one realm to another on the same instance of Keycloak
Niko Köbler
niko at n-k.de
Tue Oct 15 11:40:30 EDT 2019
Hi Ben,
have you already tried to use the JSON Export/Import for users?
Or - a very dirty hack - some direct database operations!?
Do you need to port all the passwords, too?
If not, you could write a program using the admin api to read all the users from realm A and create them in realm B (not the fastest approach) and send a "change password" mail to all of them.
Cheers,
- Niko
> Am 14.10.2019 um 10:31 schrieb Benjamin Huskic <benjamin.huskic at thequalitygate.com>:
>
> Hello everybody,
>
> I have created a couple of realms for development in our environment. Now we need to move/copy all created users from UAT to UAT2.
>
> A simple task, as I assumed, but I am now struggling for a couple of hours to find a solution on the web. Can someone give me a hint how this is done?
>
> Thank you in advance
> Kind regards,
> Benjamin
>
>
>
>
> [cid:image001.png at 01D4D841.19FC8380]
> Benjamin Huskić
> Founder & Solution Director
>
> mobile: +971-5444-9-4664
> email: benjamin.huskic at thequalitygate.com<mailto:benjamin.huskic at thequalitygate.com>
> web: http://www.thequalitygate.com<http://www.thequalitygate.com/>
>
>
> <image001.png>_______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Message signed with OpenPGP
Url : http://lists.jboss.org/pipermail/keycloak-user/attachments/20191015/4e3d2384/attachment.bin
More information about the keycloak-user
mailing list