Add multiple target audience groups to SharePoint Quick Launch Node


private void SetAdminViewAudience(SPNavigationNode node)
        {
            if (quickLaunchItem.Properties.Contains("Audience"))
            {
                node.Properties["Audience"] = ";;;;" + Group1+","+ Group2 +","+ Group3+","+etc... "";
            }
            else
            {              
                node.Properties.Add("Audience",  ";;;;" + Group1+","+ Group2 +","+ Group3+","+etc... "" );
            }
            node.Update();
        }

Comments

Popular posts from this blog

SharePoint 2010: JavaScript Code To Check if user exists in a group (ECMA)

How to copy DLLs from GAC.