# LDAP - Removed AD-user still in xWiki

**URL:** <https://forum.xwiki.org/t/ldap-removed-ad-user-still-in-xwiki/7347>\
**Category:** Help / Discuss\
**Tags:** ldap, xwiki-12-6-1\
**Created:** [August 20, 2020, 6:28am UTC](https://forum.xwiki.org/t/ldap-removed-ad-user-still-in-xwiki/7347 "2020-08-20T06:28:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jwielsch](https://forum.xwiki.org/user_avatar/forum.xwiki.org/jwielsch/32/5294_2.png) [@jwielsch](https://forum.xwiki.org/u/jwielsch)\
**Post date:** [August 20, 2020, 6:28am UTC](https://forum.xwiki.org/t/ldap-removed-ad-user-still-in-xwiki/7347/1 "2020-08-20T06:28:31Z")

</div>

hi folks,

people in the company are coming and leaving. After leaving, their AD-account will be deactivated and deleted after some time. xWiki does not seems to get that changes.

We have to remove or anonymize the xwiki-account-data after deactivating the AD-account. Does anyone have an idea how to handle that automatically?

Regards

---

<div class="post-metadata">

**Author:** ![tmortagne](https://forum.xwiki.org/user_avatar/forum.xwiki.org/tmortagne/32/4930_2.png) [@tmortagne](https://forum.xwiki.org/u/tmortagne)\
**Post date:** [August 28, 2020, 12:49pm UTC](https://forum.xwiki.org/t/ldap-removed-ad-user-still-in-xwiki/7347/2 "2020-08-28T12:49:18Z")

</div>

The LDAP authentication indeed does not provide anything like this right now. A way to cover this would be to write a [scheduler](https://extensions.xwiki.org/xwiki/bin/view/Extension/Scheduler%20Application) which check if existing XWiki LDAP users still exist on LDAP side.

---

<div class="post-metadata">

**Author:** ![jwielsch](https://forum.xwiki.org/user_avatar/forum.xwiki.org/jwielsch/32/5294_2.png) [@jwielsch](https://forum.xwiki.org/u/jwielsch)\
**Post date:** [August 29, 2020, 10:47am UTC](https://forum.xwiki.org/t/ldap-removed-ad-user-still-in-xwiki/7347/3 "2020-08-29T10:47:09Z")

</div>

Thank you very much for that idea.

I am not able to do such a thing. One thing for the list to get programmed later in our project.
