Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. SharePoint
  4. Security Trimmed Controls

Security Trimmed Controls

Scheduled Pinned Locked Moved SharePoint
questionsharepointsecurity
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    arut jothi
    wrote on last edited by
    #1

    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

    N 1 Reply Last reply
    0
    • A arut jothi

      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

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      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

      A 1 Reply Last reply
      0
      • N Not Active

        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

        A Offline
        A Offline
        arut jothi
        wrote on last edited by
        #3

        Thanks Mark.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups