2

I have a site with a group "owners" and "members". I do not want members to have access to the ribbon or the the suite bar what do I have to modify in the master page to do that I believe I have found the correct section of the master page. I believe I should use the command:

<SharePoint:SPSecurityTrimmedControl> around the <div id="s4-ribbonrow"> element but I do not know how to correctly apply this. Everything I have tried so far results in an error on the site

</SharePoint:AjaxDelta>
        <div id="ms-hcTest"></div>
        <div id="s4-ribbonrow" >
        <div id="globalNavBox" class="noindex">
    <div id="ribbonBox">
    <div id="s4-ribboncont">
        <SharePoint:AjaxDelta id="DeltaSPRibbon" BlockElement="true" runat="server">
            <SharePoint:DelegateControl runat="server" ID="GlobalDelegate0" ControlId="GlobalSiteLink0" />
            <SharePoint:SPRibbon
                runat="server"
                PlaceholderElementId="RibbonContainer"
                CssFile="" >
                <SharePoint:SPRibbonPeripheralContent
                    runat="server"
                    CssClass="ms-core-defaultFont ms-dialogHidden"
                    Location="TabRowLeft">
                </SharePoint:SPRibbonPeripheralContent>
                <SharePoint:SPRibbonPeripheralContent
                    runat="server"
                    Location="TabRowRight"
                    ID="RibbonTabRowRight"
                    CssClass="s4-trc-container s4-notdlg ms-core-defaultFont">
                    <SharePoint:SPSharePromotedActionButton runat="server"/>
                    <SharePoint:DelegateControl runat="server" ControlId="PromotedActions" AllowMultipleControls="true" />
                    <SharePoint:SPSyncPromotedActionButton runat="server"/>
                    <SharePoint:PageStateActionButton id="PageStateActionButton" runat="server" Visible="false" />
M_kul
  • 131
  • 1
  • 7

2 Answers2

4

For anyone interested I accomplished this using a simple css edit in the head of the page code below if anyone needs:

<style type="text/css">
    #contentBox  {margin-left: 20px !important;}
    #SearchBox {display:none;}
    #suiteBarTop {display:none !important;}
    #s4-ribbonrow{display:none !important;}
</style>
<Sharepoint:SPSecurityTrimmedControl runat="server"PermissionsString="FullMask">
<style type="text/css">
    #suiteBarTop{display:block !important;}
    #s4-ribbonrow{display:block !important;}
</style>
</Sharepoint:SPSecurityTrimmedControl>
M_kul
  • 131
  • 1
  • 7
0

You can Hide ribbon using SPSecurityTrimmedControl based on PermissionsString like

◾FullMask. ◾EmptyMask. ◾ManagePermissions. ◾ManageSubwebs. ◾ManageWeb. ◾AddAndCustomizePages. ◾BrowseDirectories. ◾ViewPages. ◾EnumeratePermissions. ◾ManageAlerts.

Jihan
  • 136
  • 7