Show/Hide content based on permission

SPSecurityTrimmedControl class in SharePoint can be used to show or hide contents of a page based on the current user’s permissions. When the class is used on an .aspx page or a Master Page, the content contained inside the tag will be visible only to users that match the criteria/permission specified using some properties of the class.

Uses – The visibility of links to the built-in pages in the layouts directory such as the Site Settings or View All Site Content page can be controlled. Also, visibility of sections of the ribbon can be controlled. All this can be done when a custom Master Page is being used.

Where to apply – This can be applied to a Master Page, Application page or .aspx page such as a Web Part Page or Page Layout. Continue reading

Advertisements