Skip to content

Conversation

NishkalankBezawada
Copy link
Collaborator

@NishkalankBezawada NishkalankBezawada commented Oct 19, 2025

Type

  • Bug Fix
  • New Feature
  • Sample

Related Issues?

Fixes #5003

What is in this Pull Request ?

This PR fixes the issue with #5003.

Observation

Both
Set-PnPSite -HidePeopleWhoHaveListsOpen $true
Set-PnPSite -HidePeoplePreviewingFiles $true

Are not setting these properties. When checked the code, these properties are missing in the cmdlet.
Also Get-PnPTenantSite -Identity https://contoso.sharepoint.com/sites/Test20251014 -Detailed is not returning these properties.

Actual behavior

both -HidePeopleWhoHaveListsOpen and -HidePeoplePreviewingFiles should set the given properties for the site.

Solution

Added these properties to the cmdlet, fixed the issue.

Screenshots and Tests

Get-PnPTenantSite -Identity https://contoso.sharepoint.com/sites/Test20251014 -Detailed returning the properties

image

Set-PnPSite -HidePeopleWhoHaveListsOpen $true

image

Set-PnPSite -HidePeoplePreviewingFiles $true

image

Thanks,
Nish

@gautamdsheth gautamdsheth merged commit 1ae1dd0 into pnp:dev Oct 22, 2025
3 checks passed
@NishkalankBezawada NishkalankBezawada deleted the feature/fix-issue-5003 branch October 22, 2025 12:00
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

Successfully merging this pull request may close these issues.

[BUG] hidePeople not working

2 participants