[keycloak-user] How to create a realm using the admin client

Michael Yoder myoder at cloudera.com
Tue Feb 20 18:58:27 EST 2018


I've got the json from a realm export. Now I'd like to re-create that realm
using the keycloak-admin-client library.  Is there any sample code out
there?  Hints?
I've found

http://www.keycloak.org/docs/3.4/server_development/#admin-rest-api

and

http://www.keycloak.org/docs-api/3.4/javadocs/

and even

https://github.com/keycloak/keycloak/blob/master/integration/admin-client/src/main/java/org/keycloak/admin/client/resource/RealmResource.java

I feel like I've got parts of it, but I don't know how to put the pieces
together. Any help would be appreciated.

Thanks,
-Mike Yoder


More information about the keycloak-user mailing list