Hi I want to be able to hide the 'Site 'actions' button at the top of my sharepoint page as well as the List Tools in the ribbon. I have a code which removes these altogether but I want to remove these for only a specific permission group not everyone that visits the site.



You can use SPSecurityTrimmedControl to put your logic inside this control to hide the Site Actions and other buttons!

Have a look at:
Hide “Site Actions” -> “View All Site Content” in a 2010 Publishing Site
SecurityTrimmedControl – An Indispensible Tool for your public facing SharePoint web site (and others)

All possible permissions value are Listed on MSDN

| improve this answer | |

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.