I have a client called “auths-servlet” in the quickstart realm, and I want to copy it to the “quickstart-copy-02” realm, Because I don’t want to manually configure “Resources, Policies, Permissions” again; I’ve created nearly a dozen Resources, so it’s not easy to manually create them again; I tried to export and import, but failed, is there a better way?
I want to copy this client’s all of config in “Authorization” to another realm’s any client
I was on the Windows 11 command line
F:\keycloak\keycloak-25.0.4\bin>
kcadm.bat create partialImport -r quickstart-copy-03 -s ifResourceExists=FAIL -o -f E:\IdeaProj\cloud-keycloak\mykc-demo2409\quickstart-realm-file.json
No server specified. Use --server, or 'kcadm.bat config credentials'.
F:\keycloak\keycloak-25.0.4\bin>kcadm.bat --server create partialImport -r quickstart-copy-03 -s ifResourceExists=FAIL -o -f E:\IdeaProj\cloud-keycloak\mykc-demo2409\quickstart-realm-file.json
F:\keycloak\keycloak-25.0.4\bin>kcadm.bat config credentials --server http://localhost:8080 --realm master --user admin --password password123456
Logging into http://localhost:8080 as user admin of realm master
F:\keycloak\keycloak-25.0.4\bin>kcadm.bat create partialImport -r quickstart-copy-03 -s ifResourceExists=FAIL -o -f E:\IdeaProj\cloud-keycloak\mykc-demo2409\quickstart-realm-file.json
HTTP 500 Internal Server Error