# How to do automatic deactivation of users accounts rochetchat via ldap?

**URL:** <https://forums.rocket.chat/t/how-to-do-automatic-deactivation-of-users-accounts-rochetchat-via-ldap/3058>\
**Category:** Community Support\
**Created:** [February 1, 2019, 1:27pm UTC](https://forums.rocket.chat/t/how-to-do-automatic-deactivation-of-users-accounts-rochetchat-via-ldap/3058 "2019-02-01T13:27:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Francis](https://avatars.discourse-cdn.com/v4/letter/f/ac8455/32.png) [@Francis](https://forums.rocket.chat/u/Francis)\
**Post date:** [February 1, 2019, 1:27pm UTC](https://forums.rocket.chat/t/how-to-do-automatic-deactivation-of-users-accounts-rochetchat-via-ldap/3058/1 "2019-02-01T13:27:25Z")

</div>

Hello ,  
Can someone explain to me how is the automatic deactivation of rocketchat user accounts via ldap? thank you.

---

<div class="post-metadata">

**Author:** ![aaron.ogle](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/aaron.ogle/32/15_2.png) [@aaron.ogle](https://forums.rocket.chat/u/aaron.ogle)\
**Post date:** [February 3, 2019, 1:29am UTC](https://forums.rocket.chat/t/how-to-do-automatic-deactivation-of-users-accounts-rochetchat-via-ldap/3058/2 "2019-02-03T01:29:23Z")

</div>

I don’t believe this feature currently exists.

---

<div class="post-metadata">

**Author:** ![Francis](https://avatars.discourse-cdn.com/v4/letter/f/ac8455/32.png) [@Francis](https://forums.rocket.chat/u/Francis)\
**Post date:** [February 7, 2019, 9:02am UTC](https://forums.rocket.chat/t/how-to-do-automatic-deactivation-of-users-accounts-rochetchat-via-ldap/3058/3 "2019-02-07T09:02:00Z")

</div>

How can I do it then, because when I import a new ldif file via the ldap using Active Directory and I do the synchronization in Rocket chat, the deactivation of the users left of the company is not done not . Thank you.
