Hello,
This convenient control has been around since the old good MOSS days, but was never given enough attention..
So i would like to explain what it is good for and how you can use it in your site.
SPSecurityTrimmedControl will basically hide all its content from users that won't meet a given security definition.
Unlike the previous solutions (style.display='none'...), the content will be hidden on the server side!
For Example: recently i was asked to show the top ribbon only to users with Manage rights.
What i did, was:
Open the site's Master Page in SharePoint Designer
Find a div with id= s4-ribbonrow, its content is actually the top ribbon
Wrap this div with a SPSecurityTrimmedControl, like this:
Useful attributes of the control:
- PermissionContext - against which user permissions will be tested
(possible values: CurrentSite, CurrentList, CurrentFolder, CurrentItem or RootSite)
- PemissionMode - does the user have to meet all role definitions or just one of them
(possible values: All or Any)
- PermissionsString - what permissions does the user need to see the content - can enter some values separated by comma
(possible values are from the enumeration SPBasePermissions:
EmptyMask,ViewListItems,AddListItems,EditListItems,DeleteListItems,ApproveItems,OpenItems,ViewVersions,
DeleteVersions,CancelCheckout,ManagePersonalViews,ManageLists,ViewFormPages,Open,ViewPages,
AddAndCustomizePages, ApplyThemeAndBorder,ApplyStyleSheets,ViewUsageData,CreateSSCSite,
ManageSubwebs,CreateGroups, ManagePermissions,BrowseDirectories,BrowseUserInfo,AddDelPrivateWebParts,
UpdatePersonalWebParts,ManageWeb, UseClientIntegration,UseRemoteAPIs,ManageAlerts,CreateAlerts,
EditMyUserInfo,EnumeratePermissions,FullMask)
- AuthenticationRestrictions - allows to differ between authenticated and anonymous users
(possible values: AllUsers, AuthenticatedUsersOnly, AnonymousUsersOnly)
save, check-in, publish and there you go!
Add your comment
Flexible Forms
Convenient responsive modern forms, featuring tabs, section and column permissions, dynamic rules, repeating sections, electronic signatures and input validation, while keeping all your data safely inside SharePoint.
Smart dynamic SharePoint forms provide an exceptional user experience, improve data quality and simplify business processes, saving you valuable resources.


Intuitive Automation
Replace complex SharePoint and Power Automate workflows with simple, but versatile Actions to create and update data inside SharePoint and in a variety of integrated applications, such as Exchange, MS SQL, Teams and many more.
By reducing the learning curve, you empower more people in your organization to create and manage business solutions, successfully removing bottlenecks.


Clear Reporting
Present data as actionable insights with detailed shareable reports, dashboards, KPIs, calendars and charts.
Everyone is able to visualize information in an accessible fashion, improving responsiveness and accountability.


100’s of Templates


