[keycloak-user] export of realm json

Bill Burke bburke at redhat.com
Sun Oct 4 16:57:20 EDT 2015


For security reasons we did not want to have a remote option to export.

On 10/4/2015 5:27 AM, Tim Dudgeon wrote:
> Thanks. That looks like what I need.
> Tim
>
> On 03/10/2015 13:39, Giriraj Sharma wrote:
>> 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
>> <mailto: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 <mailto: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
>
>
>
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user
>

-- 
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com


More information about the keycloak-user mailing list