Security Trimmed Controls
-
Hi All, I'm trying to implement security trimmed controls in SharePoint and I'm quite new to this. My requirement is to hide or display a certain content (it could be anything like OOB webpart, custom control, navigation link etc.) on the SharePoint main page or MySite based on the user permission. How do I accomplish this? Thanks Arut
-
Hi All, I'm trying to implement security trimmed controls in SharePoint and I'm quite new to this. My requirement is to hide or display a certain content (it could be anything like OOB webpart, custom control, navigation link etc.) on the SharePoint main page or MySite based on the user permission. How do I accomplish this? Thanks Arut
arut jothi wrote:
trying to implement security trimmed controls
arut jothi wrote:
it could be anything like OOB webpart, custom control, navigation link etc.
These are somewhat mutually exclusive. If you are implementing it then it isn't an OOB webpart. There are many ways to accomplish this depending on what your requirements are. If a list view webpart is being used then the items displayed will be based on the security for the list itself. Other controls use Audience settings to filter content. And of course custom controls would need to implement their own logic or you could use the SPSecurityTrimmedControl Maybe this will give you a start http://fusionovation.com/blogs/mbell/archive/2008/09/18/security-trimmed-controls-in-sharepoint.aspx[^]
I know the language. I've read a book. - _Madmatt
-
arut jothi wrote:
trying to implement security trimmed controls
arut jothi wrote:
it could be anything like OOB webpart, custom control, navigation link etc.
These are somewhat mutually exclusive. If you are implementing it then it isn't an OOB webpart. There are many ways to accomplish this depending on what your requirements are. If a list view webpart is being used then the items displayed will be based on the security for the list itself. Other controls use Audience settings to filter content. And of course custom controls would need to implement their own logic or you could use the SPSecurityTrimmedControl Maybe this will give you a start http://fusionovation.com/blogs/mbell/archive/2008/09/18/security-trimmed-controls-in-sharepoint.aspx[^]
I know the language. I've read a book. - _Madmatt
Thanks Mark.