Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sitecore Permissions - How to grant access to item for a role, but deny everyone else

I have an item in the content tree that I only want to allow access to a specific role.

i.e

  • Anonymous - DENY
  • Logged in without my role - DENY
  • Logged in with specific role - ALLOW

My initial plan was to add a 'DENY' against the 'Everyone' role, then add a 'ALLOW' against my role.

But as far as I can see this does not work because the 'DENY' of 'Everyone' will always trump the 'ALLOW' of my role?

like image 963
David Masters Avatar asked Oct 30 '25 06:10

David Masters


1 Answers

What you want to do is break inheritance on the item so that any previous permissions that have been provided will be eliminated. Then, give permissions only to the role you want.

This will achieve the "Deny Everyone" you are attempting to do, but know that this means that if you try to apply a 'global' security higher in the tree you will need to repeat it at this level. For example, if you have a Content Admin role that can do anything anywhere, you would have to re-apply the Content Admin role on this item.

like image 182
Jay S Avatar answered Nov 01 '25 13:11

Jay S



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!