[BUG] AudienceIds not working after running Add-PnPNavigationNode #2392
Unanswered
kbeeveer46
asked this question in
General
Replies: 1 comment
-
@gautamdsheth Can you explain why this was moved to discussions? Is this not a bug? If it's not a bug who should this be directed to so I can create a ticket in their GitHub project. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Reporting an Issue or Missing Feature
Issue
Expected behavior
Please let me know if this isn't the right place for this question/bug report. When I run the following code (see below) to add a Quick Launch link and add an audience it seems to work just fine. No errors are thrown and when I go to the SharePoint site I can see the audience associated with the guid was added to the link.
The problem is that the Quick Launch link is still visible to me even though I am not part of the audience. I was expecting the link to be hidden. Even more strange is that if I add the audience to the link using the UI on the SharePoint site it works as expected. The link is hidden from me.
Is there something I'm not doing correctly? All the websites I can find online say this code should work.
Actual behavior
Here is a screen shot. The Audience Test 9 link should not be visible to me because I am not in that group. Even after refreshing the page it is still visible.
![image](https://user-images.githubusercontent.com/12972554/192889528-351438e9-2912-4219-868d-eb3041f4624e.png)
Steps to reproduce behavior
What is the version of the Cmdlet module you are running?
1.11.0
Which operating system/environment are you running PnP PowerShell on?
Beta Was this translation helpful? Give feedback.
All reactions