Hide a Specific Category from one of the Admins-Open Source

Scenario

We have a scenario of more than one admin where one of the admins wants to create a category and add specific group and want it to be hidden from the other admin

Is it possible? If Yes, how?

If no, what are the best practices except removing the admin access

It’s an open source discourse

I don’t think this is possible except by removing the user as admin, as admins have virtually access to everything.

You can enable the Suppress secured categories from admin site setting. It doesn’t cover all places, but maybe it’s enough for your use case.

Can that control which admin sees the categories? Or is it all or nothing?

The visibility is based on the security settings of the category, just like it works for everyone else. So, if the admin is a member of one of the groups that are allowed to see the category, they can see it.

1 Like

I think you could hide it with css if the admin doesn’t notice, but if you can’t trust your admins, you’ve got bigger problems than them seeing a category.

No. Admins can see all categories.

Get rid of both admins.

3 Likes

I am quite sure the site setting I was talking about changes that. It did that when I tried it about a year ago. Is it broken?

From the description of that same setting:

Suppress private topics and PMs in some parts of UI for admins. Content will still be visible in some places. This is not a security feature: admins can always access all content on the site.

2 Likes

Oops! I bet you’re right! Sorry about that. Sorry, I totally missed that

1 Like

Couldn’t the admin change that setting back?

And an admin could always download a backup and restore it some place else. You can’t hide anything from an admin. Ever.

2 Likes

They can also use data explorer, which isn’t logged in staff action logs, while changing a setting is. The setting helps to prevent accidental access. For me, there is a difference between “hidden from the other admin” which was asked in the OP and “preventing admins from accessing the information”.

And that’s why I said:

1 Like

This setting is good only if an admin is uninterested in getting that content in their feed. A curious admin would always have ways around the problem.

The safest way is as @pfaffman recommended

1 Like