is there a way to import/export users alone in keycloak
"bin/standalone.sh -Dkeycloak.migration.action=export
-Dkeycloak.migration.provider=dir -Dkeycloak.migration.dir=<DIR TO EXPORT TO>"
seems to export the entire realm, i am interested in importing users info alone (i.e user,
user attribute, user role mapping, user user group association)
any suggestions?
Madhu
Show replies by date
Well.. the work around i have for faster migration from 4.5 to 4.7 is to export all the
realms using
standalone.sh -Dkeycloak.migration.action=export -Dkeycloak.migration.provider=dir
-Dkeycloak.migration.dir=/home/centos/keycloak-export
-Dkeycloak.migration.usersExportStrategy=SAME_FILE -Djboss.socket.binding.port-offset=1000
-c standalone-ha.xml
And then, set up keycloak 4.7 from scratch (with a fresh database)and import the data to
the new database using
sudo ./bin/standalone.sh -Dkeycloak.migration.action=import
-Dkeycloak.migration.provider=dir -Dkeycloak.migration.dir=/home/centos/keycloak-export
-Dkeycloak.migration.usersExportStrategy=SAME_FILE
-Dkeycloak.migration.strategy=OVERWRITE_EXISTING -Djboss.socket.binding.port-offset=1000
-c standalone-ha.xml
This way i am manging to avoid the huge time taken with
"[org.keycloak.migration.migrators.MigrateTo4_6_0]"
Regards,Madhu
On Wednesday, 12 December, 2018, 7:28:49 PM IST, Madhu <kkcmadhu(a)yahoo.com>
wrote:
is there a way to import/export users alone in keycloak
"bin/standalone.sh -Dkeycloak.migration.action=export
-Dkeycloak.migration.provider=dir -Dkeycloak.migration.dir=<DIR TO EXPORT TO>"
seems to export the entire realm, i am interested in importing users info alone (i.e user,
user attribute, user role mapping, user user group association)
any suggestions?
Madhu