1.2MS-102Advanced
Est: ~15 minsVerified: 2026-08

Privileged Identity Management (PIM) & JIT Access

Implement Just-in-Time (JIT) role activation, approval workflows, ticket enforcement, and automated Access Reviews using Microsoft Entra PIM.

Tags:#PIM#Entra ID#Zero Standing Access#JIT#Security#MS-102
01

Overview

Microsoft Entra Privileged Identity Management (PIM) enforces the Zero Trust principle of Zero Standing Access (ZSA) across Microsoft 365 and Azure resources. Instead of assigning permanent, standing administrative privileges (such as Global Administrator, Exchange Administrator, or Security Administrator), administrators are granted Eligible role assignments.

When elevated privileges are required:

  1. The user requests Just-in-Time (JIT) activation for a maximum duration (e.g., 4 to 8 hours).
  2. The user is required to authenticate with Phishing-Resistant MFA.
  3. The request mandates entering a justification and incident/ticket number (e.g., ServiceNow INC#).
  4. For highly sensitive roles (Global Admin), the activation requires multi-person authorization from designated approvers.
  5. Once the duration expires, elevated privileges are automatically revoked.

---

02

When to Use

Role Assignment TypeTarget AudienceRisk Posture
Eligible Assignment (Recommended)Human IT Administrators (Tier 0 / Tier 1)High security; privileges are dormant until activated with MFA and approval.
Active Assignment (Time-bound)Contractors / Vendors for short projectsAutomatically revokes on an expiration date (e.g., after 30 days).
Permanent Active (Emergency Break-Glass)2 Cloud-only Emergency Glass AccountsExcluded from PIM, Conditional Access, and MFA hardware tokens.

---

03

Prerequisites

Licensing & Permissions:

  • Microsoft Entra ID P2 or Microsoft 365 E5.
  • Privileged Role Administrator or Global Administrator to configure PIM policies.

---

04

Portal Path

TEXT
Microsoft Entra Admin Center (https://entra.microsoft.com)
└── Identity governance
    └── Privileged Identity Management
        ├── Microsoft Entra roles
        │   ├── Roles (Inspect, configure settings & assignment rules)
        │   ├── Assignments (Eligible & Active assignments)
        │   └── Alerts (Unassigned elevation, frequent activation)
        └── Access reviews (Automate periodic quarterly re-certification)

---

05

Step-by-Step Implementation

Step 1: Configure Role Activation Settings

  1. Navigate to Entra Admin Center > Identity governance > Privileged Identity Management > Microsoft Entra roles > Roles.
  2. Select target role: Global Administrator.
  3. Click Role settings in the top action bar > Click Edit.
  4. Configure Activation rules:
  • Activation maximum duration (hours): 4
  • On activation, require: Azure MFA
  • Require justification on activation: Yes
  • Require ticket information on activation: Yes
  • Require approval to activate: Yes > Select designated approvers (e.g., CISO or Head of IT Infrastructure).
  1. Configure Assignment rules:
  • Allow permanent eligible assignment: Yes
  • Allow permanent active assignment: No (Enforces Zero Standing Privilege).
  1. Configure Notification settings: Send critical activation alerts to the Security Operations Center (SOC).

Step 2: Assign an Eligible Role to an Administrator

  1. In PIM > Microsoft Entra roles > Assignments > Click Add assignments.
  2. Select role: Global Administrator.
  3. Select members: Select user admin.sarah@contoso.com.
  4. Setting: Eligible | Assignment type: Permanently eligible.
  5. Click Assign.

Step 3: Activating the Role (User Experience)

  1. The administrator signs in to Entra portal > My roles > Microsoft Entra roles.
  2. Click Activate next to Global Administrator.
  3. Complete MFA challenge > Enter Reason: "Routine Exchange migration troubleshooting" > Enter Ticket: INC-49201.
  4. Approver receives email notification, reviews justification, and clicks Approve.

---

06

PowerShell Automation

Check Active and Eligible PIM Assignments via Graph:

PowerShell
Connect-MgGraph -Scopes "RoleEligibilitySchedule.Read.Directory", "RoleAssignmentSchedule.Read.Directory"

# List all Eligible role assignments in tenant
Get-MgRoleManagementDirectoryRoleEligibilityScheduleInstance -All | 
    Select-Object roleDefinitionId, principalId, startDateTime, endDateTime

# List all actively elevated PIM assignments
Get-MgRoleManagementDirectoryRoleAssignmentScheduleInstance -Filter "assignmentType eq 'Activated'" |
    Select-Object roleDefinitionId, principalId, startDateTime, endDateTime

---

07

Microsoft Graph Automation

Create an Access Review for Privileged Roles:

PowerShell
Connect-MgGraph -Scopes "AccessReview.ReadWrite.All"

$ReviewBody = @{
    displayName = "Quarterly Global Admin Access Review"
    description = "Validate that all users with Global Admin eligibility still require access."
    scope = @{
        "@odata.type" = "#microsoft.graph.accessReviewQueryScope"
        query = "/roleManagement/directory/roleDefinitions/62e90394-69f5-4237-9190-012177145e10/transitiveAssignments"
    }
    reviewers = @(
        @{
            query = "/users/ciso@contoso.com"
        }
    )
    settings = @{
        mailNotificationsEnabled = $true
        reminderNotificationsEnabled = $true
        recurrence = @{
            pattern = @{
                type = "absoluteMonthly"
                interval = 3
            }
        }
    }
}

New-MgIdentityGovernanceAccessReviewDefinition -BodyParameter $ReviewBody

---

08

Verification Checklist

VERIFICATION CHECKLIST
0/5 (0%)
Administrators have 0 permanent standing assignments for Global Administrator.
Activating the role forces an MFA verification challenge.
Attempting to activate without entering a ticket number blocks submission.
Approver receives immediate email and push notification in Authenticator app.
Role privileges automatically drop after 4 hours without manual intervention.
09

Diagnostic Logs & Channels

Channel / ToolLog LocationPurpose
PIM Resource AuditPIM > Microsoft Entra roles > Resource auditRecords every role activation request, justification, approver action, and expiration.
Entra ID Audit LogsEntra Admin Center > Monitoring > Audit logsFilter by Service: Privileged Identity Management to capture role elevation events in SIEM.
PIM Security AlertsPIM > Microsoft Entra roles > AlertsFlags anomalous admin activity (e.g., roles activated too frequently, accounts not using roles).

---

10

Troubleshooting Matrix

Error Code / SymptomRoot CauseExact Resolution
"Activation requires MFA but user cannot complete"User has not registered required strong authentication method (FIDO2/Authenticator).User must register MFA methods via aka.ms/mfasetup before requesting PIM activation.
Approver did not receive approval requestApprover email address is invalid, or notification was swallowed by junk filter.Navigate to PIM > Approve requests to approve directly in the portal without email.
PIM settings grayed outUser lacks Privileged Role Administrator role or tenant Entra ID P2 license expired.Verify active Entra ID P2 licensing and grant user Privileged Role Administrator role.

---

11

Production Best Practices

Production Best Practice

Exclude Break-Glass Accounts from PIM:

Do NOT configure your 2 emergency break-glass accounts as PIM Eligible. If Microsoft Entra PIM experiences a cloud service degradation, you must have permanent access to break-glass accounts stored in a physical fireproof safe.

---

12

MS-102 Exam Notes

Exam Blueprint & High-Yield Traps

High-Frequency Exam Objectives & Traps:

  1. PIM Scope: PIM manages both Microsoft Entra roles (tenant-wide) and Azure resources (subscriptions/management groups).
  2. Eligible vs Active: Eligible requires user action to activate; Active is already active without user initiation.
  3. Access Reviews Auto-Apply: If a reviewer does not respond, Access Reviews can be configured to automatically Remove access or Take recommendations.

---

13

Official Documentation