Forum Discussion
Get-SPOSite ConditionalAccessPolicy Displaying Incorrect Value
When I run the below command under the ConditionalAccessPolicy value it is displaying AllowFullAccess even though the property is set to AllowLimitedAccess.
Get-SPOSite -IncludePersonalSite $true -Limit all | Select-Object URL,ConditionalAccessPolicy
If I run it direct on one of the sites it display the ConditionalAccessPolicy property correctly and shows it as AllowLimitedAccess.
Get-SPOSite -Identity https://domain-my.sharepoint.com/personal/name_name_domain_com | fl *
- RonnievanBuuren1Copper Contributor
same problem! did you ever find any reference to this?
- CptKeysCopper Contributor
blue_man I also came across this issue today
Found the docs stating that using a Filter or -Limit command will stop a bunch on properties being populated
https://learn.microsoft.com/en-us/powershell/module/sharepoint-online/get-sposite?view=sharepoint-ps#-limit
this Github post states using a foreach to get the correct information, but then you also have to worry about too many commands and hitting 429 error (too many requests)https://github.com/MicrosoftDocs/office-docs-powershell/issues/8865