# Is it possible to restrict admins from a category?

**URL:** https://meta.discourse.org/t/is-it-possible-to-restrict-admins-from-a-category/26441
**Category:** Support
**Created:** [3월 17, 2015, 4:11오후 UTC](https://meta.discourse.org/t/is-it-possible-to-restrict-admins-from-a-category/26441 "2015-03-17T16:11:56Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Qambo](https://avatars.discourse-cdn.com/v4/letter/q/a698b9/32.png) [@Qambo](https://meta.discourse.org/u/Qambo)
#### Post date: [3월 17, 2015, 4:11오후 UTC](https://meta.discourse.org/t/is-it-possible-to-restrict-admins-from-a-category/26441/1 "2015-03-17T16:11:57Z")

</div>

I was able to create a private category. I was able to assign a group to that category. But, it’s also allowing **all** admins to view the category. Is there a way to only allow the users from a particular group to access the category, excluding the admin group? Only admins who are in that particular group may view the category.

Is this possible?

---

<div class="post-metadata">

### Author: ![lisajill](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lisajill/32/32289_2.png) [@lisajill](https://meta.discourse.org/u/lisajill)
#### Post date: [3월 17, 2015, 4:18오후 UTC](https://meta.discourse.org/t/is-it-possible-to-restrict-admins-from-a-category/26441/2 "2015-03-17T16:18:42Z")

</div>

You can’t exclude admins, no. They are all seeing, afaik. 🙂

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [3월 17, 2015, 4:20오후 UTC](https://meta.discourse.org/t/is-it-possible-to-restrict-admins-from-a-category/26441/3 "2015-03-17T16:20:04Z")

</div>

Yep, any viewing restriction you could place on admins would be artificial as they could just download a backup and peek in there. You have to trust somebody.

---

<div class="post-metadata">

### Author: ![Qambo](https://avatars.discourse-cdn.com/v4/letter/q/a698b9/32.png) [@Qambo](https://meta.discourse.org/u/Qambo)
#### Post date: [3월 17, 2015, 5:42오후 UTC](https://meta.discourse.org/t/is-it-possible-to-restrict-admins-from-a-category/26441/4 "2015-03-17T17:42:15Z")

</div>

Here’s the scenario that I’m trying to address.

I have a forum consisting of a small community where everyone knows each other. In this forum, there’s a group made specifically for women where they can share their thoughts without any men viewing the content. There’s a female admin who is managing that section. However, we don’t want the male admins to be able to see the category. I understand that admins can pull the backup and view the topics in that category, but we don’t plan to. Is this possible?

---

<div class="post-metadata">

### Author: ![lisajill](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lisajill/32/32289_2.png) [@lisajill](https://meta.discourse.org/u/lisajill)
#### Post date: [3월 17, 2015, 7:27오후 UTC](https://meta.discourse.org/t/is-it-possible-to-restrict-admins-from-a-category/26441/5 "2015-03-17T19:27:16Z")

</div>

Only if you make the uh… people who should not view that content non-admins.

Are there particular functions your admins are doing that require that level of access? It may be worth revisiting who can do what if you have this as a content-security issue.

---

<div class="post-metadata">

### Author: ![elberet](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elberet/32/122404_2.png) [@elberet](https://meta.discourse.org/u/elberet)
#### Post date: [3월 18, 2015, 1:18오전 UTC](https://meta.discourse.org/t/is-it-possible-to-restrict-admins-from-a-category/26441/6 "2015-03-18T01:18:20Z")

</div>

You could write a tiny plugin that monkey-patches the `User` class and overwrites the `secure_category_ids` method…

However, in the interest of fairness, everyone on your forum should be aware that all admins can at any time view all content; the only thing such a change can do is to reduce temptation to give in to curiosity.

---

<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: [9월 19, 2018, 2:26오전 UTC](https://meta.discourse.org/t/is-it-possible-to-restrict-admins-from-a-category/26441/7 "2018-09-19T02:26:15Z")

</div>



---

<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: [9월 19, 2018, 2:32오전 UTC](https://meta.discourse.org/t/is-it-possible-to-restrict-admins-from-a-category/26441/8 "2018-09-19T02:32:08Z")

</div>

No, admins can not be restricted, they can download the database if they wish and look at the tables.

---

<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: [9월 19, 2018, 2:32오전 UTC](https://meta.discourse.org/t/is-it-possible-to-restrict-admins-from-a-category/26441/9 "2018-09-19T02:32:14Z")

</div>


