Created
May 13, 2017 15:20
-
-
Save arjancornelissen/0294ea2bf0de454190261a3101a41357 to your computer and use it in GitHub Desktop.
Check if a partner as access to all site collection
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$sites = Get-SPOSite -Limit All | |
foreach ($site in $sites) | |
{ | |
Write-Output $site.Url | |
Get-SPOUser -Site $site.Url | Where-Object {$_.DisplayName -like "Foreign Principal*"} | Select-Object DisplayName, LoginName | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment