Forum Discussion
how to display url and conditional access policy for all site collections in a tenant.
- Nov 12, 2018
You can just as easily add the -Detailed switch...
Get-SPOSite | % { Get-SPOSite -Detailed -Identity $_.URL | select Url,Conditional* }
It's a single line of code in PowerShell:
Get-SPOSite | ft Url,ConditionalAccessPolicy
- null nullNov 12, 2018Iron Contributor
It is showing full access for all site collections which is not correct. I have tested individually for a site collection with the following line:
Get-SPOSite -Identity <site collection link> -Detailed | Flwhich displays AllowLimitedAccess which i have applied before specifically for the site:
Set-SPOSite -Identity <name of site collection or OneDrive account> -ConditionalAccessPolicy AllowLimitedAccess
- VasilMichevNov 12, 2018MVP
You can just as easily add the -Detailed switch...
Get-SPOSite | % { Get-SPOSite -Detailed -Identity $_.URL | select Url,Conditional* }
- ivanoi99412Feb 20, 2020Copper Contributor
VasilMichev Hello Vasil,
Do you have an idea how to convert the command to display the conditional access policy for personal onedrive for business site ?