Last active
July 8, 2020 09:14
-
-
Save thierrybuisson/68ff8f9c8509ee4ea7e408a23d809bc2 to your computer and use it in GitHub Desktop.
This file contains 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
//Sharepoint Online - Site hub management | |
//Please connect first with - PS> Connect-SPOService -url https://<your tenant>-admin.sharepoint.com | |
#Export all admin users and roles to CSV | |
Get-MsolRole | %{$role = $_.name; Get-MsolRoleMember -RoleObjectId $_.objectid} | select @{Name="Role"; Expression = {$role}}, DisplayName, EmailAddress | Export-Csv .\tenantadminrole.csv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment