I’m working on an Intranet where virtually everyone will be a Contributor. We’ve built custom navigation paths to customized forms for the content input, so we want to hide the “View All Site Content” links on every page. We want to hide it from everyone except the users who have Full Control.
The master page, by default, shows this link as follows (formatted for readability):
<Sharepoint:SPSecurityTrimmedControl runat="server" PermissionsString="FullMask"> <div> <SharePoint:SPLinkButton id="idNavLinkViewAll" runat="server" NavigateUrl="~site/_layouts/viewlsts.aspx" Text="<%$Resources:wss,quiklnch_allcontent%>" AccessKey="<%$Resources:wss,quiklnch_allcontent_AK%>"/> </div> </SharePoint:SPSecurityTrimmedControl>
Easy to find in the master, but what values are available for PermissionsString? Not an easy thing to find, but if you look at the bottom of this MSDN page at the Community Content, you’ll see the available values. Thanks to Zac Smith in NZ for posting this! (Here’s a link to his original blog post. The one in the MSDN page is no longer valid.) We’ll experiment with what value works best in our situation.
| List Permissions | Site Permissions | Personal Permissions |
| ManageLists CancelCheckout AddListItems EditListItems DeleteListItems ViewListItems ApproveItems OpenItems ViewVersions DeleteVersions CreateAlerts ViewFormPages |
ManagePermissions ViewUsageData ManageSubwebs ManageWeb AddAndCustomizePages ApplyThemeAndBorder ApplyStyleSheets CreateGroups BrowseDirectories CreateSSCSite ViewPages EnumeratePermissions BrowseUserInfo ManageAlerts UseRemoteAPIs UseClientIntegration Open EditMyUserInfo |
ManagePersonalViews AddDelPrivateWebParts UpdatePersonalWebParts |




1 comment
1 ping
mariselvan
May 19, 2011 at 2:56 am (UTC -4) Link to this comment
hi Marc D Anderson’s ,
The permission string=full control was really helped me.thanks Marc D Anderson’s .
thanks
mariselvan
Sharepoint. Kunskap. Upptäckter på resan.
September 23, 2011 at 9:14 am (UTC -4) Link to this comment
[...] To hide this menu, wrap it into a spsecuritytrimmingcontrol: [...]