Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

keyclaok 20.0.1 : How to import realm from json file?

Tags:

keycloak

From the documentation one can read:

bin/kc.[sh|bat] start --import-realm

When you set the --import-realm option, the server is going to try to import any realm configuration file from the data/import directory. Each file in this directory should contain a single realm configuration. Only regular files using the .json extension are read from this directory, sub-directories are ignored.

Where to put my .json file ? they are saying data/import, but where exactly ?

PS: I'm not running keycloak in a docker container

like image 783
flywell Avatar asked Oct 29 '25 14:10

flywell


1 Answers

In the root of the Keycloak project create the folder data/import and add your data into it.

like image 59
dreamcrash Avatar answered Oct 31 '25 11:10

dreamcrash