[keycloak-user] export of realm json

Giriraj Sharma giriraj.sharma27 at gmail.com
Sat Oct 3 08:39:07 EDT 2015


Hi Tim,


Please have a look a keycloak docs
<http://keycloak.github.io/docs/userguide/html/export-import.html>[1]. I am
not sure if it can be achieved via admin console too but I don't think so.

To export into single JSON file you can use:

bin/standalone.sh -Dkeycloak.migration.action=export
-Dkeycloak.migration.provider=singleFile
-Dkeycloak.migration.file=<FILE TO EXPORT TO>

Here's an example of importing:

bin/standalone.sh -Dkeycloak.migration.action=import
-Dkeycloak.migration.provider=singleFile
-Dkeycloak.migration.file=<FILE TO IMPORT>
-Dkeycloak.migration.strategy=OVERWRITE_EXISTING

[1]http://keycloak.github.io/docs/userguide/html/export-import.html

On Sat, Oct 3, 2015 at 4:25 PM, Tim Dudgeon <tdudgeon.ml at gmail.com> wrote:

> keycloak provides a way to import the definition of a realm as json, but
> I can't see any way in the UI to export the definition in the first place.
> Am I missing something obvious?
> Tim
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user
>



-- 

Giriraj Sharma
about.me/girirajsharma
<http://about.me/girirajsharma?promo=email_sig>
 Giriraj Sharma,
Department of Computer Science
National Institute of Technology Hamirpur
Himachal Pradesh, India 177005
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20151003/49be6870/attachment-0001.html 


More information about the keycloak-user mailing list