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
Post a Comment