Use it to remove standing Global Administrator and other privileged Entra or Azure role assignments, and to manage privileged group membership the same way.
Privileged Identity Management (PIM)
Privileged Identity Management (PIM) is the Microsoft Entra service that makes administrator roles just-in-time: users are eligible for a role and activate it for a limited time, with MFA, justification and optionally approval.
1. Is the user eligible (not just active) for the role?
2. Did activation succeed and is it still within its duration?
3. Did approval or MFA block the activation?
4. Has the user signed out and back in so the new role is in the token?
eligible assignment → activation request (MFA, justification, ticket) → approval if required → time-bound active assignment → new token with role → audit and expiry
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Read-only Verification Verify boundary
Connect-MgGraph -Scopes "RoleManagement.Read.Directory"
# Eligible Entra role assignments for one principal
Get-MgRoleManagementDirectoryRoleEligibilitySchedule -Filter "principalId eq '<object-id>'" |
Select-Object RoleDefinitionId, DirectoryScopeId, @{n='Ends';e={$_.ScheduleInfo.Expiration.EndDateTime}}
# Assignments active right now (permanent or activated)
Get-MgRoleManagementDirectoryRoleAssignmentScheduleInstance -Filter "principalId eq '<object-id>'" |
Select-Object RoleDefinitionId, AssignmentType, StartDateTime, EndDateTime
AssignmentType Activated is a just-in-time activation; Assigned is a standing active assignment. In the portal, PIM → Microsoft Entra roles → Assignments shows the same split, and Audit shows who activated what, when and with which justification.
Step 2 Common mistakes Narrow the fault
- Leaving permanent active Global Administrator assignments for named users after enabling PIM.
- Maximum activation durations of 24 hours for everyone, which turns just-in-time into all-day standing access.
- No approvers or unreachable approvers for critical roles.
- Forgetting break-glass accounts, or excluding them from every control without alerting on their use.
- Assuming PIM covers on-premises AD groups — it does not.
Step 3 Troubleshooting Narrow the fault
Role activated but the portal still says access denied. The token predates activation. Sign out and back in, or wait for the token to refresh. For Azure resource roles, also check the scope you are working in.
Activation is stuck in pending. The role requires approval; check who the approvers are and whether they received the notification.
Activation fails with an MFA or authentication context error. The role setting requires MFA or a specific authentication context that the current session does not satisfy. Sign in again with the required method.
User does not see the role under My roles. No eligible assignment, the eligibility has expired, or the user is eligible through a group that is itself managed by PIM for Groups and must be activated first.
Eligible = may activate; active = has the privilege now. Activation is time-bound and audited. PIM covers Entra roles, Azure resource roles and PIM for Groups. It requires Microsoft Entra ID Governance or P2 licensing.
- Entra admin center → PIM → My roles — eligible and active assignments for you.
Get-MgRoleManagementDirectoryRoleEligibilitySchedule— who is eligible for which Entra role.Get-MgRoleManagementDirectoryRoleAssignmentScheduleInstance— assignments active right now.- PIM audit history — activations, approvals and justifications.
ReferenceWhat it is2 sections · depth on demand
Direct Answer
Privileged Identity Management (PIM) makes Microsoft Entra and Azure admin roles just-in-time. Instead of a permanent (active) assignment, an administrator is eligible and activates the role when needed, for a limited time, after MFA and a justification — and, if configured, after approval. Every activation is audited and expires on its own. PIM also manages privileged group membership (PIM for Groups) and supports access reviews.
Scope and canonical references
This Topic owns Microsoft's PIM service.
- The general concepts: Privileged Access Management and Just-in-Time Access.
- The directory it runs in: Microsoft Entra ID.
- Periodic recertification: Access Review.
- On-premises equivalents: Just Enough Administration and AD tiering under Active Directory Security.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
Assignment types
| Type | Meaning |
|---|---|
| Eligible | The user must activate (and possibly get approval) before using the role. Access is the same as active once activated. |
| Active | The user has the role's privileges without any action. Can be permanent or time-bound. |
Both types can have start and end dates, so even eligibility can expire and must be renewed.
What PIM covers
- Microsoft Entra roles — Global Administrator, Privileged Role Administrator, Exchange Administrator and so on; managed by Privileged Role Administrators.
- Azure resource roles — Owner, Contributor, User Access Administrator at management group, subscription, resource group or resource scope.
- PIM for Groups — just-in-time membership or ownership of a group, useful when the group grants roles or app access.
Role settings
Each role has settings for activation: maximum duration (up to 24 hours), require MFA or an authentication context, require justification or ticket information, require approval and who approves, and notifications. Assignment settings control whether permanent eligible or active assignments are allowed.
Activation and tokens
After activation the role appears in a new token. Already-open portals and sessions may need a sign-out and sign-in, or a token refresh, before the role is effective. When the activation expires, the role is removed; existing tokens can remain valid until they expire.
Safeguards and licensing
PIM prevents removal of the last active Global Administrator and Privileged Role Administrator. Keep at least two cloud-only break-glass accounts with permanent Global Administrator, excluded from normal Conditional Access and closely monitored. PIM requires licensing (Microsoft Entra ID P2 or ID Governance); check Microsoft's licensing fundamentals for which users need a licence.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.