You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using Get-PnPTenantSite | Where-Object {$_.OverrideTenantExternalUserExpirationPolicy -eq $true} to get all sites where the mentioned feature overwrites the tenant default
hi @timtatam , this is a CSOM limitation. It only provides the value for some properties not all.
For more detailed information, you need to specify -Identity parameter , nothing we can change from our side.
Reporting an Issue or Missing Feature
Bug: Missleading results from Get-PnPTenantSite
Expected behavior
Using
Get-PnPTenantSite | Where-Object {$_.OverrideTenantExternalUserExpirationPolicy -eq $true}
to get all sites where the mentioned feature overwrites the tenant defaultActual behavior
Getting no sites at all
Steps to reproduce behavior
returns True
whereas for the call
Get-PnPTenantSite | Where-Object {$_.OverrideTenantExternalUserExpirationPolicy -eq $true}
I get no results
I believe it is related to the fact that for this property there is 'default data' returned when filtering is used:
https://learn.microsoft.com/en-us/powershell/module/sharepoint-online/get-sposite?view=sharepoint-ps#description
What is the version of the Cmdlet module you are running?
PnP.PowerShell 2.12.0
PowerShell 7.4.6
Which operating system/environment are you running PnP PowerShell on?
The text was updated successfully, but these errors were encountered: