Hide Ribbon From Anonymous Users in SharePoint 2010

InfoPath alternatives for form designing SharePoint

In this post we will discuss How To hide ribbon from anonymous users in SharePoint 2010. Also you can check out my previous posts on:

– SharePoint Search through Server Object Model 2010

– Deploy custom images to SharePoint2010

– PowerShell cmdlets for SharePoint 2010

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”;

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

Similar SharePoint 2013 Tutorials

Leave a Reply