MSP StockroomFind a guide, template or tool…/
Curated SOPs / Microsoft 365 and identity

M365 Curated SOP / Microsoft 365 and identity

Review who holds admin roles in a Microsoft 365 tenant

List every account that holds a Microsoft Entra admin role in a client's tenant, so you can confirm each one is expected.

Low risk / Read-only / Reviewed December 1, 2026

Written and maintained by MSP Stockroom. Nobody else edits it.

On this page

Before you run anything: read every command first and understand what it does. Replace example names, domains and addresses with your own. Try it on a test device or tenant before a client's. Keep client names, passwords and keys out of tickets and chat.

Purpose

List every account that holds a Microsoft Entra admin role in a client's tenant, so you can confirm each one is expected. Use it in the first week with a new client, after a previous provider leaves, and at each quarterly review. Read-only: nothing in this SOP changes the tenant.

Scope and prerequisites

  • Run by the client's assigned engineer or the onboarding tech.
  • Needs an account that can read directory roles, such as Global Reader.
  • The Microsoft Graph PowerShell SDK installed from the PowerShell Gallery.
  • Store the results in your documentation platform, never in this library.

Steps

  1. Sign in with read-only consent for directory roles:
    # Read-only scope. You will be asked to sign in to the client's tenant.
    Connect-MgGraph -Scopes "RoleManagement.Read.Directory", "Directory.Read.All"
  2. List each active admin role and its members:
    Get-MgDirectoryRole -All | ForEach-Object {
        $role = $_
        Get-MgDirectoryRoleMember -DirectoryRoleId $role.Id -All | ForEach-Object {
            [pscustomobject]@{
                Role   = $role.DisplayName
                Member = $_.AdditionalProperties.userPrincipalName
                Name   = $_.AdditionalProperties.displayName
                Type   = $_.AdditionalProperties.'@odata.type'
            }
        }
    } | Sort-Object Role, Member
  3. Mark each member as expected or not. Service principals and groups appear with an empty Member column; record them by Name.
  4. In the Microsoft 365 admin center, open Settings, then Partner relationships, and list every partner with delegated admin access and its roles.
  5. Disconnect when finished:
    Disconnect-MgGraph

Verify

Every admin role holder and every partner relationship has a named owner on the client side or yours, and a reason. Anything without both goes to the client contact as a question, not a change.

Rollback

Nothing to roll back; this SOP only reads. Removing a role or a partner relationship is a separate change, made with the client's approval.

Notes

Roles assigned through Privileged Identity Management as eligible, not active, do not appear in this list. Check them in the Entra admin center under Privileged Identity Management if the tenant is licensed for it. See https://learn.microsoft.com/en-us/powershell/microsoftgraph/overview for the SDK.

Sources and notes

Curated SOP from the MSP Stockroom SOP library (curated/m365-identity/review-admin-role-holders.md). Last reviewed December 1, 2026. Tested on: Microsoft Graph PowerShell SDK 2.x; PowerShell 7.4. Vendor screens and commands change; check the vendor documentation before you rely on a step. Found a mistake? See corrections.

Search the stockroom

↑ ↓ to choose · Enter to open · Esc to close

Open the full search page →