# User keeps getting reverted to inactive

**URL:** https://meta.discourse.org/t/user-keeps-getting-reverted-to-inactive/132643
**Category:** Support
**Created:** [November 5, 2019, 12:20pm UTC](https://meta.discourse.org/t/user-keeps-getting-reverted-to-inactive/132643 "2019-11-05T12:20:55Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![carlokok](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/carlokok/32/115951_2.png) [@carlokok](https://meta.discourse.org/u/carlokok)
#### Post date: [November 5, 2019, 12:20pm UTC](https://meta.discourse.org/t/user-keeps-getting-reverted-to-inactive/132643/1 "2019-11-05T12:20:55Z")

</div>

This morning I activated a user (Activate User) that was suddenly seen as not activated, after years of working just fine:

 ![afbeelding](https://global.discourse-cdn.com/meta/original/3X/0/d/0d3113e82b7819d5fd242aa85f9043535e119110.png)

A few hours later it’s back to staged again. What could cause this?

(Tried via email activation now; but I don’t see any log as to what originally reverted this user to staged)

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [November 5, 2019, 5:30pm UTC](https://meta.discourse.org/t/user-keeps-getting-reverted-to-inactive/132643/2 "2019-11-05T17:30:43Z")

</div>

Trying to follow, but this is confusing me:

> [@carlokok](#):
>
> A few hours later it’s back to staged again

Are you sure you mean staged? Or do you mean not activated?

---

<div class="post-metadata">

### Author: ![carlokok](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/carlokok/32/115951_2.png) [@carlokok](https://meta.discourse.org/u/carlokok)
#### Post date: [November 6, 2019, 5:48am UTC](https://meta.discourse.org/t/user-keeps-getting-reverted-to-inactive/132643/3 "2019-11-06T05:48:26Z")

</div>

I did mess up terminology yes. The user got de-activated, not staged. For what it’s worth, it hasn’t happened again (yet?)

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [November 6, 2019, 2:40pm UTC](https://meta.discourse.org/t/user-keeps-getting-reverted-to-inactive/132643/4 "2019-11-06T14:40:17Z")

</div>

Without knowing some additional data about the user, my best guess is that they hadn’t been seen on the site for a year, and are an admin, and as such were automatically deactivated. Does that sound right?

---

<div class="post-metadata">

### Author: ![carlokok](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/carlokok/32/115951_2.png) [@carlokok](https://meta.discourse.org/u/carlokok)
#### Post date: [November 7, 2019, 5:42am UTC](https://meta.discourse.org/t/user-keeps-getting-reverted-to-inactive/132643/5 "2019-11-07T05:42:17Z")

</div>

Yep! Only problem is that their api key is used a LOT, just never logged in. That said, thanks, I’ve disabled this option for now.

---

<div class="post-metadata">

### Author: ![hosna](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hosna/32/99969_2.png) [@hosna](https://meta.discourse.org/u/hosna)
#### Post date: [November 7, 2019, 6:51am UTC](https://meta.discourse.org/t/user-keeps-getting-reverted-to-inactive/132643/7 "2019-11-07T06:51:19Z")

</div>

> [@jomaxro](#):
>
> Without knowing some additional data about the user, my best guess is that they hadn’t been seen on the site for a year, and are an admin, and as such were automatically deactivated. Does that sound right?

happend to me this morning. how to disable such behavior?

I need this to be disabled fast. cause ppl signup in my application by discourse api. and the api user is inactive and only used for this.

---

<div class="post-metadata">

### Author: ![carlokok](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/carlokok/32/115951_2.png) [@carlokok](https://meta.discourse.org/u/carlokok)
#### Post date: [November 7, 2019, 7:34am UTC](https://meta.discourse.org/t/user-keeps-getting-reverted-to-inactive/132643/8 "2019-11-07T07:34:16Z")

</div>

There’s an option to disable this. Search for inactive.

---

<div class="post-metadata">

### Author: ![dax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dax/32/244677_2.png) [@dax](https://meta.discourse.org/u/dax)
#### Post date: [November 7, 2019, 12:41pm UTC](https://meta.discourse.org/t/user-keeps-getting-reverted-to-inactive/132643/9 "2019-11-07T12:41:08Z")

</div>

The site setting is called `invalidate inactive admin email after days` and by default is set to 365 days.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [July 28, 2023, 11:32pm UTC](https://meta.discourse.org/t/user-keeps-getting-reverted-to-inactive/132643/10 "2023-07-28T23:32:14Z")

</div>



---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [July 29, 2023, 5:13am UTC](https://meta.discourse.org/t/user-keeps-getting-reverted-to-inactive/132643/11 "2023-07-29T05:13:57Z")

</div>


