# Unlinking LDAP users

**URL:** <https://forum.keycloak.org/t/unlinking-ldap-users/11804>\
**Category:** Getting advice\
**Created:** [October 29, 2021, 4:57pm UTC](https://forum.keycloak.org/t/unlinking-ldap-users/11804 "2021-10-29T16:57:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mustang1068](https://avatars.discourse-cdn.com/v4/letter/m/848f3c/32.png) [@mustang1068](https://forum.keycloak.org/u/mustang1068)\
**Post date:** [October 29, 2021, 4:57pm UTC](https://forum.keycloak.org/t/unlinking-ldap-users/11804/1 "2021-10-29T16:57:09Z")

</div>

Already reported this as a [defect](https://issues.redhat.com/browse/KEYCLOAK-19685) 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

---

<div class="post-metadata">

**Author:** ![rul-hydro](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/rul-hydro/32/4223_2.png) [@rul-hydro](https://forum.keycloak.org/u/rul-hydro)\
**Post date:** [November 3, 2021, 10:52am UTC](https://forum.keycloak.org/t/unlinking-ldap-users/11804/2 "2021-11-03T10:52:16Z")

</div>

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.
