# One admin can't revoke another admin

**URL:** https://meta.discourse.org/t/one-admin-cant-revoke-another-admin/164067
**Category:** Support
**Created:** [September 15, 2020, 8:06am UTC](https://meta.discourse.org/t/one-admin-cant-revoke-another-admin/164067 "2020-09-15T08:06:10Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Ed\_Bobkov](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ed_bobkov/32/200014_2.png) [@Ed\_Bobkov](https://meta.discourse.org/u/Ed_Bobkov)
#### Post date: [September 15, 2020, 8:06am UTC](https://meta.discourse.org/t/one-admin-cant-revoke-another-admin/164067/1 "2020-09-15T08:06:10Z")

</div>

I have 2 admin accounts. Here is what I did. I logged in as a 1st admin, revoked the admin rights of the 2nd admin. Status changed to “Admin? No”. Then I logged in with this 2nd account in ‘incognito’ mode. Admin status changed back himself. What may be a reason for this? Thank you!

---

<div class="post-metadata">

### Author: ![IAmGav](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/iamgav/32/235598_2.png) [@IAmGav](https://meta.discourse.org/u/IAmGav)
#### Post date: [September 15, 2020, 8:16am UTC](https://meta.discourse.org/t/one-admin-cant-revoke-another-admin/164067/2 "2020-09-15T08:16:53Z")

</div>

There is an admin email address in your config file (app.yml)

The setting is called

> DISCOURSE\_DEVELOPER\_EMAILS:

That admin with that specific email address, will always have admin rights even if others try to remove it.

---

<div class="post-metadata">

### Author: ![hellekin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hellekin/32/51636_2.png) [@hellekin](https://meta.discourse.org/u/hellekin)
#### Post date: [July 2, 2025, 12:04pm UTC](https://meta.discourse.org/t/one-admin-cant-revoke-another-admin/164067/3 "2025-07-02T12:04:05Z")

</div>

I have removed myself from `DISCOURSE_DEVELOPER_EMAILS`, then the UI did not provide “Revoke admin” for myself. I find this problematic that an admin cannot step down.

So I went to the console and ran in the rails console:

```plaintext
u = User.find(1)
u.admin = false
u.save

```

Is this correct?

I found that I could still post in the Staff category. So I added:

```plaintext
u.revoke_admin!

```

And now I’m a normal user. 🥳

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [July 2, 2025, 12:30pm UTC](https://meta.discourse.org/t/one-admin-cant-revoke-another-admin/164067/4 "2025-07-02T12:30:36Z")

</div>

Yes, it’s not possible to demote yourself. You’d either need to do it from the console, or ask one of the other site admins to do it through the UI as normal.

As long as you’re not in the `DISCOURSE_DEVELOPER_EMAILS` anymore you shouldn’t be re-promoted when you log out/login.
