# Revoke moderators in bulk

**URL:** https://meta.discourse.org/t/revoke-moderators-in-bulk/347215
**Category:** Support
**Created:** [January 15, 2025, 8:16am UTC](https://meta.discourse.org/t/revoke-moderators-in-bulk/347215 "2025-01-15T08:16:09Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![tpetrov](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tpetrov/32/164643_2.png) [@tpetrov](https://meta.discourse.org/u/tpetrov)
#### Post date: [January 15, 2025, 8:16am UTC](https://meta.discourse.org/t/revoke-moderators-in-bulk/347215/1 "2025-01-15T08:16:09Z")

</div>

Is there a way to revoke moderators in bulk? When I try to remove them from the moderators group it doesn’t work, so I need to go to each user via admin and revoke.

---

<div class="post-metadata">

### Author: ![ondrej](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ondrej/32/198804_2.png) [@ondrej](https://meta.discourse.org/u/ondrej)
#### Post date: [January 15, 2025, 10:17am UTC](https://meta.discourse.org/t/revoke-moderators-in-bulk/347215/2 "2025-01-15T10:17:13Z")

</div>

Hi Toni,

I did some searching and found this:

> [@Bulk edit users - remove moderator privilege](https://meta.discourse.org/t/bulk-edit-users-remove-moderator-privilege/183523/3):
>
> Thanks, it did the trick slight_smile For anyone needing this, here is the full procedure. ./launcher enter app # rails c # User.where(moderator: true).update\_all(moderator: false)

However, in the `/admin/users/list/active` there currently isn’t a way to do this. There is a feature request linked below that seems relevant.

> [@Bulk Action on Users](https://meta.discourse.org/t/bulk-action-on-users/158936/3):
>
> from the admin control panel, being able to select multiple users and doing one or more of the following: Deactivating their account Grant Admin Grant Moderator Lock Trust Level Suspend a user Silence a user

I’d also like something similar too and since there is already a bulk select option albeit just for deleting users hopefully it can be expanded on in the future.

 ![image](https://global.discourse-cdn.com/meta/original/4X/2/b/3/2b3dc12fbbf512fb20a143d0b85994e4b0f59117.png)

---

<div class="post-metadata">

### Author: ![traceymoko](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/traceymoko/32/483235_2.png) [@traceymoko](https://meta.discourse.org/u/traceymoko)
#### Post date: [January 15, 2025, 10:19am UTC](https://meta.discourse.org/t/revoke-moderators-in-bulk/347215/3 "2025-01-15T10:19:59Z")

</div>

> [@tpetrov](#):
>
> When I try to remove them from the moderators group it doesn’t work

Yeah unfortunately this won’t work since the moderators group (like other staff groups) is automatic. It updates the group automatically when you add/remove moderator privileges, but doesn’t work the other way around.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [January 16, 2025, 4:04am UTC](https://meta.discourse.org/t/revoke-moderators-in-bulk/347215/5 "2025-01-16T04:04:01Z")

</div>

Yeah only way I can think about doing this in bulk would be via the api

---

<div class="post-metadata">

### Author: ![MihirR](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mihirr/32/475158_2.png) [@MihirR](https://meta.discourse.org/u/MihirR)
#### Post date: [January 16, 2025, 6:13am UTC](https://meta.discourse.org/t/revoke-moderators-in-bulk/347215/6 "2025-01-16T06:13:02Z")

</div>

Just go to Admin Settings and find the endpoint to revoke moderation and a python script can be your friend. In case you need the script please let me know I’m not on my pc rn or would have attached the same.

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [September 17, 2025, 11:58pm UTC](https://meta.discourse.org/t/revoke-moderators-in-bulk/347215/7 "2025-09-17T23:58:16Z")

</div>


