Unlinking LDAP users

Already reported this as a defect however I am curious if anyone knows a workaround.

After importing users using an LDAP provider and mapping all the properties, roles, etc… I then need to unlink from LDAP and continue using in keycloak standalone. The issue is that although the users remain, their client roles are getting removed. This is easily reproducible on version 15.0.2. I have not tried other versions.

Any idea/help would be appreciated

I would expect that unlinking the users won’t make you happy for very long. It would be a pain to copy updated users from LDAP to Keycloak.