The discussion revolves around hiding a specific category from one admin in an open-source Discourse setup. Eman_Ahmed asks if it’s possible to restrict an admin’s access to a category while allowing others to view it. NateDhaliwal initially states that admins have full access and cannot be restricted. Moin suggests enabling the Suppress secured categories from admin site setting, which may hide categories from admins based on group permissions, but pfaffman clarifies that admins can always access all content. Moin confirms the setting’s effect but acknowledges its limitations. itsbhanusharma notes the setting only prevents accidental exposure, not intentional access, and emphasizes that a curious admin can bypass restrictions. RGJ adds that admins can modify settings or download backups. The consensus is that true hiding from an admin is impossible, and the best practice is to avoid trusting admins with sensitive data.
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
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.
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.
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.
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”.
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.