Get A List Of All Office 365 Global Administrators Using PowerShell

This blog post will show you how to check and get a list of all Global Administrators In Office 365 using PowerShell.

The Office 365 PowerShell Module, Is very powerful and allows us to do more tasks and configuration than the Portal.

Get Started

To get started, I’ll log in to Office 365 via PowerShell using the cmdlet below:


Once Connected, I’ll run the two cmdlets below and will show me all the Global Administrators.

$role = Get-MsolRole -RoleName "Company Administrator"
Get-MsolRoleMember -RoleObjectId $role.ObjectId

Using the Portal

The Office 365 Portal also allows us to view all the Global Admins users using a built-in view as you can see below.