SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
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
up vote 1 down vote accepted

I think it is PermissionsString not Permissions.

<Sharepoint:SPSecurityTrimmedControl runat="server" PermissionsString="ViewFormPages">
share|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: – Hugh Wood Aug 29 '12 at 9:09… (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 posting your answer, you agree to the privacy policy and terms of service.

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