If you designed a custom master page for your SharePoint 2016 and the ribbon is in your way, SharePoint has a built-in control that lets you hide it from  anonymous users  in few easy steps. Open and check-out your master page, find where your ribbon control starts or look for

wrap your publishing ribbon control in SPSecurityTrimmedControl

Don’t forget to set the correct permissions in the Permissions attribute. Here are few of the choices SPSecurityTrimmedControl allows:

 List Permissions  Site Permissions  Personal Permissions
 ManageLists  ManagePermissions  ManagePersonalViews
 CancelCheckout  ViewUsageData  AddDelPrivateWebParts
 AddListItems  ManageSubwebs  UpdatePersonalWebParts
 EditListItems  ManageWeb  
 DeleteListItems  AddAndCustomizePages  
 ViewListItems  ApplyThemeAndBorder  
 ApproveItems  ApplyStyleSheets  
 OpenItems  CreateGroups  
 ViewVersions BrowseDirectories  
DeleteVersions CreateSSCSite  
CreateAlerts ViewPages  
ViewFormPages EnumeratePermissions  
  BrowseUserInfo  
  ManageAlerts  
  UseRemoteAPIs  
  UseClientIntegration  
  Open  
  EditMyUserInfo  

About The Author

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

Close