how to automate realm updating in production for example assign new role to group, add new client with new roles ?
ideally I want pushing realm.json or any config file to production and it apply changes to existing realm without delete old one and create new one
I tried importing realm
bin/kc.sh import --dir /opt/keycloak/realms but it deleted the existing realm and users and created a new realm
I also tried partial import through Admin API to assign new role to group with option Overwrite but it also deleted old group and created new one resulting removing all members in the group