If you need to get a list of the global administrators (or any other Office 365 role for that matter) use the following commands:
Import-Module MsOnline
Connect-MsolService
Get-MsolRole
This will return a list of Roles and the associated ObjectId, which you can then use to find the users that have the role.
The Global Admin role is listed as Company Administrator
Get-MsolRoleMember -RoleObjectId 62e90394-69f5-4237-9190-012177145e10
(Note that every ObjectId is unique to the tenant.)
Import-Module MsOnline
Connect-MsolService
Get-MsolRole
This will return a list of Roles and the associated ObjectId, which you can then use to find the users that have the role.
The Global Admin role is listed as Company Administrator
Get-MsolRoleMember -RoleObjectId 62e90394-69f5-4237-9190-012177145e10
(Note that every ObjectId is unique to the tenant.)
Comments
Post a Comment