Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enabling modern audience targeting from Set-PnPList does not function correctly #1098

Open
chimerasfbg opened this issue Dec 27, 2024 · 0 comments

Comments

@chimerasfbg
Copy link

Reporting an Issue

Set-PnPlist -Identity "Site Pages" -EnableModernAudienceTargeting $true

When using the -EnableModernAudienceTargeting switch to enable modern audience targeting on a library, the command runs successfully. However, upon checking the pages on the site where the command was executed, audience targeting appears to be activated. Despite this, the field seems broken, and new groups cannot be added. Additionally, instead of displaying the label "Audience," the field label shows as "$Resources:spcore,AudienceUserField_DisplayName;".

Expected behavior

When enabling audience targeting using the PnP cmdlet, I expect it to function identically to configuring it through the UI.

Steps to reproduce behavior

Create a new communication site.
Use Connect-PnPOnline to connect to new site.
Set-PnPlist -Identity "Site Pages" -EnableModernAudienceTargeting $true
Check existing pages or create new one and check "Audience" under page properties.

Which operating system/environment are you running PnP PowerShell on?

Run on Windows
PnP/SP version 4.8.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant