I modified my realm by adding a client with roles. Then I added some users and groups. I created the export, but I’d like to know if there’s a way to “lighten” it. Can I remove all the elements I haven’t modified? If so, will they be recreated? Is there a tool that automatically cleans up the JSON? Thanks.
The realm export in Keycloak is always a full export, there is not diff to anything. The im-/export in Keycloak is not meant as a config-as-code option.
If you are looking for something more dynamic, have a look into the Keycloak Terraform provider.
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.