Finding All SharePoint Online Administrators in the Microsoft 365 System

Yunus Emre Araç
2 min readJan 26, 2024


Hello friends, in today’s blog post, I will talk about how to find users defined as shareponit online admin on Microsoft 365. I will show you 3 quick and simple methods for this. The minimum authorization definition for SharePoint on Microsoft 365 is “SharePoint Administrator”. We will be looking for this in user privileges.

1. Finding via Microsoft 365 Admin Center

Our first method is to log in to the system’s website address, namely, using the admin user directly. You can see the active users here by going to the “Active users” menu under the “Users” main menu from the left menu.

When you click on the user here, the user’s authority appears under the title “Roles” in the large popup section that opens on the right, and those who write “SharePoint Administrator” are defined as sharepoint admin. Apart from this, admin authority can be provided by granting an additional upper authority.

2. Using MSOLService PowerShell Script

Another method is to list all users by using the MSOLService powershell script below.


$RoleID = (Get-MsolRole -RoleName "SharePoint Administrator").ObjectID

Get-MsolRoleMember -RoleObjectId $RoleID | Format-table -AutoSizepo

When you run the code above, the users will be listed as follows.

3. Using AzureAD PowerShell Script

Our last method is to list all users using the AzureAD powershell script below.


$RoleName="SharePoint Administrator"
$Role = Get-AzureADDirectoryRole | Where {$_.DisplayName -eq $RoleName}

$RoleAssignments = Get-AzureADMSRoleAssignment -Filter "roleDefinitionId eq '$($Role.ObjectId)'"

$RoleAssignments | ForEach-Object {
$User = Get-AzureADObjectByObjectId -ObjectIds $_.PrincipalId
If($User.ObjectType -eq "User") {
$User | Select-Object DisplayName,UserPrincipalName,ObjectType

You can get the same result as the previous MSOLService with the above AzureAD powershell script.



Yunus Emre Araç

Technology Product Manager of Corporate Applications at ING | Old Microsoft Student Partners Lead | İnönü Üniv. Bilg. Müh. | İAU Bilg. Müh. Tezli Yüksek Lisans