Grant tenant-wide admin rights by activating the Global Administrator directory role and adding a member.
Complexity: Intermediate. Impact: high-privilege + tenant-wide + security-sensitive + audit-logged.
Why use this workflow
The Global Administrator role is the highest-privilege role in Microsoft Entra ID. It grants full control over Entra ID and over any Microsoft 365 service that uses Entra identities, including billing, security, Exchange, SharePoint, Teams, and Intune.
Run this workflow when you onboard a new senior IT admin, set up a break-glass emergency access account, or temporarily elevate a trusted engineer for a tenant-level task. Because the impact is so large, Microsoft recommends keeping the number of permanent Global Administrators to fewer than five and using Privileged Identity Management (PIM) for just-in-time elevation wherever possible.
Before you assign the role, always confirm the user's identity. Typos or ambiguous display names can lead to granting tenant-wide control to the wrong account. If a directory search returns no results, verify the exact User Principal Name (UPN) with the requester rather than guessing.
Expected outcomes
- You verified that the target user exists and is the correct identity (by UPN, not only display name).
- You activated the
Global Administratordirectory role in the tenant (if it was not already active). - You added the user as a member of the Global Administrator role.
- You confirmed the assignment by listing role members or by inspecting the user's
memberOfcollection. - An audit entry in the Entra ID audit logs records who performed the elevation and when.
Risks and considerations
High-risk operation
- Tenant-wide control. A Global Administrator can read all data, reset any password, delete any user, and modify the tenant configuration. Treat the assignment as handing over full control of the tenant.
- Limit the count. Microsoft recommends fewer than five permanent Global Administrators. Prefer PIM eligible assignments over permanent active assignments.
- MFA is required. Make sure that the target account has strong, phishing-resistant MFA (FIDO2 or Windows Hello for Business) registered before the elevation.
- Conditional Access. Confirm that admin accounts are covered by a Conditional Access policy that enforces MFA and blocks legacy authentication.
- Break-glass separation. Do not use day-to-day user accounts for Global Administrator. Create a dedicated admin-only UPN (for example,
admin-firstname@tenant.onmicrosoft.com). - Disambiguate users. If a search returns zero or several results, stop and confirm the UPN with the requester. Never assume which account is meant.
- Licensing. The Global Administrator role itself does not require a license, but the account still needs the appropriate licenses to use services.
Required permissions
| Permission | Why it's needed |
|---|---|
| RoleManagement.ReadWrite.Directory | Required to activate directory roles and add members to them through Microsoft Graph. |
| User.Read.All | Required to look up the target user by display name or UPN before the assignment. |
| Directory.Read.All | Required to list active directory roles and confirm the Global Administrator role template. |
| Privileged Role Administrator (or Global Administrator) | The admin who runs the assignment must hold one of these roles. Only these roles can assign Global Administrator. |
Ask Dex
Paste the prompt into a Dex conversation.
Prompt for IT admins
Assign the Global Administrator role in Entra ID to {user_upn}. Verify the user exists by UPN first, confirm they have MFA registered, and prefer a PIM eligible assignment if the tenant has Entra ID P2. Report back with the verification list of current Global Admins.
Manual steps (admin center)
- Sign in to the Microsoft Entra admin center with an account that holds Privileged Role Administrator or Global Administrator.
- Go to Identity > Users > All users.
- Search for the target user by User Principal Name (the email-style sign-in name). Do not rely on the display name alone. Confirm that the UPN matches the requester's intent.
- Select the user to open their profile, then select Assigned roles in the left pane.
- Select Add assignments.
- In the role picker, search for
Global Administratorand select it. - Choose the assignment type:
- Eligible (recommended): requires activation through PIM each time. Needs Entra ID P2.
- Active: a permanent assignment. Use sparingly.
- Set a start and end date if you want time-bound access, then select Assign.
- Verify by going to Identity > Roles & admins > Roles & admins > Global Administrator and confirming that the user appears in the members list.
- Notify the user and make sure that they have registered phishing-resistant MFA before their next sign-in.
Microsoft Graph API
The role template ID for Global Administrator is 62e90394-69f5-4237-9190-012177145e10. The role must be activated (instantiated as a directoryRole) in the tenant before you can add members. If it is already active, the activation call returns an error that you can safely ignore.
Step 1: Locate the user
Prefer an exact UPN lookup over $filter searches. It avoids ambiguity.
GET https://graph.microsoft.com/v1.0/users/{userPrincipalName}If you only have a display name, use a precise filter:
GET /v1.0/users?$filter=displayName eq 'Jane Doe'&$select=id,displayName,userPrincipalNameIf zero or several results are returned, stop and confirm the UPN with the requester rather than guessing.
Step 2: Activate the Global Administrator role (idempotent)
POST https://graph.microsoft.com/v1.0/directoryRoles
Content-Type: application/json
{
"roleTemplateId": "62e90394-69f5-4237-9190-012177145e10"
}Then fetch the activated role to get its object ID:
GET /v1.0/directoryRoles?$filter=displayName eq 'Global Administrator'Step 3: Add the user as a member
POST https://graph.microsoft.com/v1.0/directoryRoles/{roleId}/members/$ref
Content-Type: application/json
{
"@odata.id": "https://graph.microsoft.com/v1.0/directoryObjects/{userId}"
}A 204 No Content response indicates success.
Step 4: Verify
GET /v1.0/directoryRoles/{roleId}/members?$select=id,displayName,userPrincipalNamePreferred: PIM eligible assignment (Entra ID P2)
POST /v1.0/roleManagement/directory/roleEligibilityScheduleRequests
{
"action": "adminAssign",
"principalId": "{userId}",
"roleDefinitionId": "62e90394-69f5-4237-9190-012177145e10",
"directoryScopeId": "/",
"justification": "Senior IT admin - eligible GA",
"scheduleInfo": { "startDateTime": "2025-01-01T00:00:00Z", "expiration": { "type": "noExpiration" } }
}
PowerShell
The Microsoft.Graph PowerShell SDK wraps the calls above. You need the Microsoft.Graph.Identity.DirectoryManagement and Microsoft.Graph.Users modules.
Install and connect
Install-Module Microsoft.Graph -Scope CurrentUser
Connect-MgGraph -Scopes "RoleManagement.ReadWrite.Directory","User.Read.All","Directory.Read.All"One-shot assignment
# 1. Resolve the user by UPN (exact match, no ambiguity)
$user = Get-MgUser -UserId "jane.doe@contoso.com"
# 2. Ensure the GA role is activated in the tenant
$gaTemplateId = "62e90394-69f5-4237-9190-012177145e10"
$role = Get-MgDirectoryRole -Filter "roleTemplateId eq '$gaTemplateId'" -ErrorAction SilentlyContinue
if (-not $role) {
$role = New-MgDirectoryRole -RoleTemplateId $gaTemplateId
}
# 3. Add the user as a role member
New-MgDirectoryRoleMemberByRef -DirectoryRoleId $role.Id -BodyParameter @{
"@odata.id" = "https://graph.microsoft.com/v1.0/directoryObjects/$($user.Id)"
}
# 4. Verify
Get-MgDirectoryRoleMember -DirectoryRoleId $role.Id |
ForEach-Object { Get-MgUser -UserId $_.Id } |
Select-Object DisplayName, UserPrincipalNameTo make this reusable, wrap the steps in a function with confirmation prompts, error handling, and a -WhatIf dry run.