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

[BUG] Missleading results from Get-PnPTenantSite #4638

Closed
1 of 6 tasks
timtatam opened this issue Dec 18, 2024 · 1 comment
Closed
1 of 6 tasks

[BUG] Missleading results from Get-PnPTenantSite #4638

timtatam opened this issue Dec 18, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@timtatam
Copy link

timtatam commented Dec 18, 2024

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 default

Actual behavior

Getting no sites at all

Steps to reproduce behavior

$tenantSite =Get-PnPTenantSite -Identity https://<tenant>.sharepoint.com/teams/<site>
$tenantSite.OverrideTenantExternalUserExpirationPolicy

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:
image
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?

  • Windows
  • Linux
  • MacOS
  • Azure Cloud Shell
  • Azure Functions
  • Other : please specify
@timtatam timtatam added the bug Something isn't working label Dec 18, 2024
@gautamdsheth
Copy link
Collaborator

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.

@gautamdsheth gautamdsheth closed this as not planned Won't fix, can't repro, duplicate, stale Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants