# User get deactivated, need to know why

**URL:** <https://meta.discourse.org/t/user-get-deactivated-need-to-know-why/135526>\
**Category:** Support\
**Created:** [December 10, 2019, 7:46am UTC](https://meta.discourse.org/t/user-get-deactivated-need-to-know-why/135526 "2019-12-10T07:46:49Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [December 10, 2019, 10:39am UTC](https://meta.discourse.org/t/user-get-deactivated-need-to-know-why/135526/3 "2019-12-10T10:39:56Z")

</div>

Yes that’s correct. We should certainly look at adding a log for that - it can be very confusing if you are not aware of the feature. I will add it to my todo list.

If you’re running the latest version of Discourse, then we have recently added some extra checks before deactivating admin accounts:

[https://github.com/discourse/discourse/commit/836b3f4d82dfc610574db93cfd1d86e4064d4062](https://github.com/discourse/discourse/commit/836b3f4d82dfc610574db93cfd1d86e4064d4062)

If the user has created posts, or has a recently used API key attached to it, then it will not be deactivated. Note that the API key must be specifically attached to this user, and **not** an “all users” key.

---

_[View the full topic](https://meta.discourse.org/t/user-get-deactivated-need-to-know-why/135526)._
