Office 365 has a couple of admin roles which can be assigned to different users. With the below PowerShell one-liner you can get the Office 365 Admin Roles in 1 overview.
Get-MsolRole | %{$role = $_.name; Get-MsolRoleMember -RoleObjectId $_.objectid} | select @{Name="Role"; Expression = {$role}}, DisplayName, EmailAddress
You’ll first need to connect to the Office 365 tenant using “Connect-MsolService” and then enter the above one-liner
Brilliant!
Thank you for putting the effort to make a one line command to go through all the roles.
Just what I needed!
Thanks for sharing!
Cheers!
Thank you!!!!!
That worked out perfectly, thank you very much