How do I copy a specified client from one realm to another realm in keycloak?

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

Is this a feature? I think this is a Bug: "client will fail when the exported JSON file contains the group policy but the realm does not; However, when I import the client configuration file, it does not appear or prompt “, because in the most important Client, in the “Authorization” “Policies”, I define the group policy, but during the import, there is a report that the group cannot be found. I speculate, in:”

  • Clients
    Client details "
    Page, in this process, the import group failed, so caused the whole failure; I tried to join all the groups in source realm, and I successfully imported all the configurations under “Authorization”;

Now, I have solved the problem of not being able to copy a client in one realm to an empty client in another realm