2

We have some "content specialists" that we'd like to effectively grant Site Admin access to every site on our network automatically, but still don't want them to be able to access the network admin menu. (They shouldn't be able to create new sites, change network settings, etc.)

I'm not sure if there's a good way to filter user permissions for this use case or something else. I am not looking to actually add them as a Site Admin to every site, just be treated as if they have those capabilities.

  • Is it a problem to just grant them Administrator (or Editor enough?) to all the sites? Is it very large or is it growing fast? It sould be possible to hook the 'user_has_cap' filter to return true for specific user IDs on all sites when not in network admin. A bit dangerous if made wrong. – Knut Sparhell Nov 6 at 18:14
  • It is hundreds of sites, can grow quickly, and we want to be able to easily grant/revoke this access from people. – MadtownLems Nov 6 at 18:19
  • Are those users added to all the sub-sites, do they have any role (like subscribers) at those sites at all? If yes, I have a simple solution ready. If not, I have investigate a bit further. – Knut Sparhell Nov 7 at 16:21
  • Nope - they do not exist with a role on any of the subsites. – MadtownLems Nov 7 at 16:34
  • It may be possible if all sites use a subdomain or subdir of the main site. If separate domains it's not possible since the user, as set as a cookie, cannot be checked cross domains. – Knut Sparhell Nov 7 at 17:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.