# onUserDeactivated for User Event

**URL:** <https://community.sendbird.com/t/onuserdeactivated-for-user-event/5094>\
**Category:** Feature Requests\
**Created:** [July 19, 2022, 3:41am UTC](https://community.sendbird.com/t/onuserdeactivated-for-user-event/5094 "2022-07-19T03:41:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![GabrielLim\_ML](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/gabriellim_ml/32/2761_2.png) [@GabrielLim\_ML](https://community.sendbird.com/u/GabrielLim_ML)\
**Post date:** [July 19, 2022, 3:41am UTC](https://community.sendbird.com/t/onuserdeactivated-for-user-event/5094/1 "2022-07-19T03:41:08Z")

</div>

Currently there’s no event that we can listen to for user deactivation. It is crucial for us to handle the side effects of it and without the event, we have to manually handle every possible entry point that could trigger the `User Deactivated` error.

---

<div class="post-metadata">

**Author:** ![sardorbek.numonov](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/sardorbek.numonov/32/697_2.png) [@sardorbek.numonov](https://community.sendbird.com/u/sardorbek.numonov)\
**Post date:** [July 19, 2022, 4:23am UTC](https://community.sendbird.com/t/onuserdeactivated-for-user-event/5094/2 "2022-07-19T04:23:56Z")

</div>

Hi @GabrielLim_ML. Could you clarify how you deactivate users? Do users deactivate themselves?

---

<div class="post-metadata">

**Author:** ![GabrielLim\_ML](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/gabriellim_ml/32/2761_2.png) [@GabrielLim\_ML](https://community.sendbird.com/u/GabrielLim_ML)\
**Post date:** [July 19, 2022, 4:54am UTC](https://community.sendbird.com/t/onuserdeactivated-for-user-event/5094/3 "2022-07-19T04:54:54Z")

</div>

From SendBird Dashboard → Select `Users` from left menu sidebar → Search & select specific user → Click `Deactivate` button

---

<div class="post-metadata">

**Author:** ![sardorbek.numonov](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/sardorbek.numonov/32/697_2.png) [@sardorbek.numonov](https://community.sendbird.com/u/sardorbek.numonov)\
**Post date:** [July 19, 2022, 11:59pm UTC](https://community.sendbird.com/t/onuserdeactivated-for-user-event/5094/4 "2022-07-19T23:59:03Z")

</div>

@GabrielLim_ML What kind do you want to listen to? in SDK?

---

<div class="post-metadata">

**Author:** ![GabrielLim\_ML](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/gabriellim_ml/32/2761_2.png) [@GabrielLim\_ML](https://community.sendbird.com/u/GabrielLim_ML)\
**Post date:** [July 20, 2022, 6:06am UTC](https://community.sendbird.com/t/onuserdeactivated-for-user-event/5094/5 "2022-07-20T06:06:37Z")

</div>

Yes, I personally use the Javascript SDK.
