I don’t wanna See all Site Content
Recently I came accross a instance where the user did not want to see the View All Site content link above the quick links. Can’t blame him. After making the UI look as business friendly as possible, clicking on the View All Site Content would spit out a list of document libraries and lists categorized according to the technical implementation, very useful for a site administrator, but making no sense to the average business user.
So I decided to put in a bit of security trimming in the masterpage. By default the View All Site Content link is within the tag <Sharepoint:SPSecurityTrimmedControl runat=”server” PermissionsString=”ViewFormPages”> meaning that as long as Tom Jones has the permission to view form pages, he would he would view this link. Changing the PermissionString attribute to ManageWeb solved this problem, thus making sure that only the Admin could see this.
So what are the other valid options for PermissionString? Here they are thanks to Zac Smith who got them out from a reflected SharePoint DLL
List Permissions
ManageLists
CancelCheckout
AddListItems
EditListItems
DeleteListItems
ViewListItems
ApproveItems
OpenItems
ViewVersions
DeleteVersions
CreateAlerts
ViewFormPages
Site Permissions
ManagePermissions
ViewUsageData
ManageSubwebs
ManageWeb
AddAndCustomizePages
ApplyThemeAndBorder
ApplyStyleSheets
CreateGroups
BrowseDirectories
CreateSSCSite
ViewPages
EnumeratePermissions
BrowseUserInfo
ManageAlerts
UseRemoteAPIs
UseClientIntegration
Open
EditMyUserInfo
Personal Permissions
ManagePersonalViews
AddDelPrivateWebParts
UpdatePersonalWebParts
So how do I determine which groups have these permissions? Simple; Go to Site Permissions and on the settings button select permission levels

Select on the group for which you want to check the permission level and there it is.
Andy Burns said,
October 17, 2007 at 4:35 pm
There is also a list and description of the permissions here.
http://msdn2.microsoft.com/en-us/library/microsoft.sharepoint.spbasepermissions.aspx
Thanks for the confirmation – I was wondering about ManageWeb for the same reason…
Links (10/8/2008) « Steve Pietrek - Everything SharePoint said,
October 9, 2008 at 12:26 am
[...] I don’t wanna See “View All Site Content” [...]