I would like to hide both the Browse & Page tabs in the SharePoint 2010 ribbon.

As I hid other controls in my master page with SPSecurityTrimmedControl I am having difficulties hiding those tabs for Anonymous Users.

In my custom master page (based on the V4) I put the following tags between the SPSecTrimControl:

<Sharepoint:SPSecurityTrimmedControl runat="server" Permissions="ManageWeb">
            CssClass="s4-trc-container s4-notdlg">      
<SharePoint:DelegateControl runat="server" ID="GlobalDelegate0" ControlId="GlobalSiteLink0" />
 <a href="#" tabindex="-1" style="display:none"></a><a href="#" tabindex="-1" style="display:none"></a>
 <div class="s4-trc-container-menu">
        <wssuc:Welcome id="IdWelcome" runat="server" EnableViewState="false">
        <wssuc:MUISelector ID="IdMuiSelector" runat="server"/>

<SharePoint:DelegateControl ControlId="GlobalSiteLink2" ID="GlobalDelegate2" Scope="Farm" runat="server" />
    <span class="s4-devdashboard">
            Width=16 />

Both tabs are still shown for all users.

Any help on this one or information is welcome!

Thanks in advance

  • Why not hide the whole ribbon instead of these two tabs only!? – Rami.Shareef Aug 28 '12 at 13:30
  • It is a requirement that the Sign In control is still visible and therefore not possible to hide the entire ribbon. – OG_Mike Aug 28 '12 at 14:20

I think it is PermissionsString not Permissions.

<Sharepoint:SPSecurityTrimmedControl runat="server" PermissionsString="ViewFormPages">
| improve this answer | |
  • Thanks for the suggestion. Changing it to "PermissionsString" did not work either, the tabs are still visible for all kinds of users. – OG_Mike Aug 29 '12 at 9:05
  • I've copied that from my master page which works, so all I can think is that the user is gaining the permission ManageWeb, you can check this using the check permissions script from here: sharepointpsscripts.codeplex.com/releases/view/21699 – Hugh Wood Aug 29 '12 at 9:09
  • sharepoint.stackexchange.com/questions/26861/… (Why I didn't link you to this in the first place I don't know).. I was having a brain fart I thought you where hiding the entire ribbon... – Hugh Wood Aug 29 '12 at 9:15

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.