Sharepoint:SPSecurityTrimmedControl in SharePoint

 
You can use SPSecurityTrimmedControl to hide content based on permissions. You can see
 
<Sharepoint:SPSecurityTrimmedControl runat=”server” Permissions=”Manage Lists”>
</SharePoint:SPSecurityTrimmedControl>
 
The Permissions values can be

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

Ebook Download
View all
Learn
View all