1

How can I hide links in quicklaunch for special usergroups? For example only administrators should see administration-links. I don't even know, if something like this is possible in a simple way or if I'll have to code a webpart for this.

Thanks in advance

Stefan Hennicken

2 Answers 2

0

If this is a link to library or list you can set permissons for it so only people that have those permission can see it - handling permissions or look at target audience - handling target audience. Hope it will help.

9
  • It helped me to understand, what I could do to hide lists somebody shouldn't see. Thanks a lot for that. But in my quicklauch, there are also different views of the same list and by showing only the links a specific group will work with, we try to make it easier to work in the sharepoint enviroment. As far as I know now, it isn't possible to achieve this (hiding some links a specific user/group will not have to work with) by handling permissions and/or target audience, because these permission focus on complete lists.
    – user1832
    Nov 12, 2010 at 13:33
  • So you just need to see records for specific group? Nov 12, 2010 at 15:16
  • Exactly. 3 groups should see different links to different views based on the same list in their quicklaunch.
    – user1832
    Nov 12, 2010 at 15:37
  • How about create attitional column where to store what kind of group can see this item and filter by it on view - in that case you can have one link for 3 groups Nov 12, 2010 at 15:42
  • Good idea, but the different views also provide different kind of sortings for each view.
    – user1832
    Nov 12, 2010 at 15:55
0

maybe following code snippet will help you

         public override void FeatureActivated(SPFeatureReceiverProperties properties)
        {
            using (var oWeb = properties.Feature.Parent as SPWeb)
            {

                SPNavigationNode node = oWeb.Navigation.AddToQuickLaunch(new SPNavigationNode("link", "Lists/yourList/view1.aspx", false), SPQuickLaunchHeading.Lists);
                node.Properties["Audience"] = ";;;;yourGroup";
                node.Update();
             }
        }

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.