locked
WSS2 - How to hide left menu items based on user authorization ? RRS feed

  • Question

  • I created new several documents collections giving exclusive permissions to specific users.

    Example:

    Collection1 --> User1, Collection2 --> User2, etc...

    All works fine. Users can only access to own collection and every attempt to access to another collection it's blocked.

    My problem, is that on the left menu all the collection are visible to all users and I don't want this. I would that user can only see the collections for he is authorized.

    Maybe I'm wrong, but in WSS 3 this behavior is not present. I did in the past a configuration like this and I remember that menu items hide automatically based on the user permissions.

    Could you help me to solve my problem ?

    Thank you for support

     

    Thursday, June 23, 2011 10:18 AM

Answers

  • You're stone cold out of luck I'm afraid.  Security trimming was added as part of MOSS 2007 (I don't know if it's part of WSS 3).  You'd look to use a SPSecurityTrimmedControl in order to get this done, but I don't believe that the WSS 2 API has this.

    <SharePoint:SPSecurityTrimmedControl id="something" runat="server" PermissionsString="AddAndCustomizePages"> your stuff goes here </SharePoint:SPSecurityTrimmedControl>

    Someone will correct me if I'm wrong.


    Steven Andrews | SharePoint Professional | http://www.twitter.com/backpackerd00d | https://baron72.wordpress.com/
    Thursday, June 23, 2011 10:43 AM
    Answerer

All replies

  • You're stone cold out of luck I'm afraid.  Security trimming was added as part of MOSS 2007 (I don't know if it's part of WSS 3).  You'd look to use a SPSecurityTrimmedControl in order to get this done, but I don't believe that the WSS 2 API has this.

    <SharePoint:SPSecurityTrimmedControl id="something" runat="server" PermissionsString="AddAndCustomizePages"> your stuff goes here </SharePoint:SPSecurityTrimmedControl>

    Someone will correct me if I'm wrong.


    Steven Andrews | SharePoint Professional | http://www.twitter.com/backpackerd00d | https://baron72.wordpress.com/
    Thursday, June 23, 2011 10:43 AM
    Answerer
  • Security trimming is in WSS 3.0 too. 

    It's natural that it should be as the WSS 3.0 product contains the WSS 3.0 "foundation" software layer that is also the basis of MOSS 2007.

    I'll mark your post as the answer though as the key fact is that security trimming isn't in WSS 2.0.


    SP 2010 "FAQ" (mainly useful links): http://wssv4faq.mindsharp.com/default.aspx
    WSS3/MOSS FAQ (FAQ and Links) http://wssv3faq.mindsharp.com/default.aspx
    Both also have links to extensive book lists and to (free) on-line chapters
    Thursday, June 23, 2011 11:07 AM
  • Thank you for your answers.

    Best regards

    Thursday, June 23, 2011 1:04 PM