Hide Ribbon From Anonymous Users in SharePoint 2010


In this post we will discuss How To hide ribbon from anonymous users in SharePoint 2010. So that anonymous users will not be able to see the ribbon.


New to Office 365 SharePoint Online? Get Office 365 Enterprise E3 Subscription & Try out all the features

1- Open your SharePoint v4.master page in SharePoint designer

2- Locate this line:

<div id=”s4-ribbonrow”>

3- Change it to:

<div id=”s4-ribbonrow” style=”display:none”>

4- Now find the end of the “s4-ribbonrow” tag and add following block right after it:


<Sharepoint:SPSecurityTrimmedControl ID=”SPSecurityTrimmedControl2″ runat=”server” PermissionsString=”AddAndCustomizePages”>
<script type=”text/javascript”>
document.getElementById(“s4-ribbonrow”).style.display = “block”;
</script>
</Sharepoint:SPSecurityTrimmedControl>

5- Save the v4.master page and publish it.

Read some SharePoint PowerShell tutorials:

Check out Best Alternative to InfoPath -> Try Now

FREE SHAREPOINT 2019 PDF

(Installation & Features)