Open
Description
Reporting an Issue or Missing Feature
I`think we got a bug in setting the "new" i think December 2024 added function to hide people previewing files or lists
Expected behavior
We were using the following commands to get the People hiding on in Preview mode:
Set-PnPSite -HidePeoplePreviewingFiles $true
Set-PnPSite -HidePeopleWhoHaveListsOpen $true
result should be the same as using:
Set-SPOSite -Identity $siteUrl -HidePeoplePreviewingFiles $true
Set-SPOSite -Identity $siteUrl -HidePeopleWhoHaveListsOpen $true
Actual behavior
Unfortunately, the pnp commands don't change the Sitesettings and you can just use "Get-SPOSite -Identity https://contoso.sharepoint.com | Select HidePeoplePreviewingFiles" to check this so there is also an get-pnpSite missing ;)
Steps to reproduce behavior
$sites = Import-Csv -Path "SCnoPreview.csv"
foreach ($site in $sites) {
$siteUrl = $site.SiteUrl
Write-Host "Configure: $siteUrl"
Connect-PnPOnline -Url $siteUrl -OSLogin -ClientId xxx-xxxx-xxx
Set-PnPSite -HidePeoplePreviewingFiles $true
Set-PnPSite -HidePeopleWhoHaveListsOpen $true
Write-Host "Configuration done for $siteUrl ."
}
What is the version of the Cmdlet module you are running?
Manifest 3.1.77 nightly PnP.PowerShell Desk
Which operating system/environment are you running PnP PowerShell on?
- Windows
- Linux
- MacOS
- Azure Cloud Shell
- Azure Functions
- Other : please specify