Azure

Keep the number of Global Admins small

DoubleCheck counts every account that holds the Global Administrator role in your tenant once a day, active or eligible, and tells you when there are more than you set.

The problem

Global Administrator is the role that can change everything in a tenant. It is handed out for a project, a migration or a quick fix, and rarely taken back.

Nobody is told when one more account gets the role. The list only grows, until someone looks at it during an audit or after an incident.

Why it matters

Every Global Admin is a way into the whole tenant. Microsoft advises fewer than five, and a takeover of one of them is a takeover of everything.

Assignments through Privileged Identity Management are easy to miss: they do not show as active until someone uses them, but they are just as much a Global Admin.

How to check it manually

In the Microsoft Entra admin center, open Roles & admins, choose Global Administrator and look at the active and the eligible assignments.

With Microsoft Graph PowerShell you can list the active ones:

Connect-MgGraph -Scopes RoleManagement.Read.Directory
Get-MgRoleManagementDirectoryRoleAssignment -Filter "roleDefinitionId eq '62e90394-69f5-4237-9190-012177145e10'" -ExpandProperty Principal |
  Select-Object @{n='Name'; e={$_.Principal.AdditionalProperties.displayName}}, PrincipalId

Do the same with Get-MgRoleManagementDirectoryRoleEligibilitySchedule for the eligible ones.

How DoubleCheck checks it

Once a day DoubleCheck reads the active and the eligible Global Administrator assignments from Microsoft Graph and counts every user, group and app once.

With the default levels, four Global Admins is a warning and five or more is an error. You can set both levels per check.

The check page lists every Global Admin and how they hold the role, and the alert names them, so you see at once who was added.

Global Administrators
Azure Global Administrators
4
4 Global Admins
3 active · 2 eligible (PIM)
Next run in 8 h
Who holds the role users first
Anna de Vriesanna@contoso.comactive and eligible
Break-glassbreakglass@contoso.comactive
Carla Jansencarla@contoso.comeligible
Tier 0 adminsgroupactive
Sample data. Every user, group and app that holds the Global Administrator role, active or eligible through PIM, counted once.
Measures
The role assignments of your tenant from Microsoft Graph (/roleManagement/directory/roleAssignments and /roleManagement/directory/roleEligibilitySchedules): every user, group and app that holds the Global Administrator role, active or eligible through Privileged Identity Management, counted once.
Runs
Once a day by default
Status
  • Lower is better.
  • Warning when the number of Global Administrators is above 3 admins (default advice).
  • Error when the number of Global Administrators is above 4 admins (default advice).
  • You can change the levels per check.
What you need
  • An app registration in your tenant with a client secret.
  • Microsoft Graph application permission RoleManagement.Read.Directory, with admin consent. Read only.
  • Eligible assignments need Microsoft Entra ID P2; without it only the active ones are counted.
FAQ

Frequently asked questions

Which permission does DoubleCheck need?

The Microsoft Graph application permission RoleManagement.Read.Directory, approved by a Global Administrator or Privileged Role Administrator. It only reads role assignments.

Do I need Entra ID P2?

No. Without P2 there is no Privileged Identity Management, so there are no eligible assignments and DoubleCheck counts the active ones.

How does a group with the role count?

A role-assignable group that holds the role counts as one, not each of its members.

Does the check warn when there are too few Global Admins?

No. Microsoft also advises at least two, including an emergency account, but the check only warns about too many.

How are my credentials stored?

The tenant ID, application ID and client secret are kept in a dedicated, encrypted secrets vault, separate from the DoubleCheck database. Access to it is restricted to DoubleCheck's own services under strict access policies.

Get started

Start monitoring with DoubleCheck

Start with €5 of free credit, no credit card required. Alerts by email, SMS, Slack, Microsoft Teams or Discord.

Start monitoring