none
Ribbon is security trimmed and always shows for appropriate user, but Gear Menu Item show/hide Ribbon no longer hides the ribbon

    Question

  • Hello,

    I have put a security trim around the ribbon in a custom master page for a publishing site.  

    <!--MS:<SharePoint:SPSecurityTrimmedControl runat="server" Permissions="ManageWeb">-->
            <div id="ms-designer-ribbon">
                <!--SID:02 {Ribbon}-->
                <!--PS: Start of READ-ONLY PREVIEW (do not modify) --><div class="DefaultContentBlock" style="background:rgb(0, 114, 198); color:white; width:100%; padding:8px; height:64px; overflow:hidden;">In true previews of your site, the SharePoint ribbon will be here.</div><!--PE: End of READ-ONLY PREVIEW -->
            </div>

    However, the ribbon shows the entire time a person with the ManageWeb permissions is logged in.  I would like for the ManageWeb users to only see the ribbon if they select "Show Ribbon" from the gear menu icon.  Then if they select "Hide Ribbon" from the gear menu icon, the ribbon should be hidden.  

    Can this be accomplished?  

    Friday, January 11, 2019 7:09 PM

Answers

  • Hi ckb_,

    If you add a security trim for ribbon for some users, then the ribbon will be shown all the time for the users who have the permission to see the ribbon.

    Then the hide ribbon command will not control it.

    Best regards,

    Sara Fan


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    SharePoint Server 2019 has been released, you can click here to download it.
    Click here to learn new features. Visit the dedicated forum to share, explore and talk to experts about SharePoint Server 2019.

    • Marked as answer by ckb_ Monday, January 14, 2019 2:20 PM
    Monday, January 14, 2019 9:28 AM
    Moderator