Black Friday sale: an extra 40% off every course until Monday, November 30.New Year sale: an extra 30% off every course until Friday, January 1.Memorial Day sale: an extra 25% off every course until Monday, May 31.SysAdmin Day sale: an extra 25% off every course until Sunday, August 1.Back to School sale: an extra 25% off every course until Sunday, August 22.Labor Day sale: an extra 25% off every course until Monday, September 6.Black Friday sale: an extra 40% off every course until Monday, November 29.New Year sale: an extra 30% off every course until Saturday, January 1.Choose your certification →

Copyright (c) 2026 MindMesh Academy. All rights reserved. This content is proprietary and may not be reproduced or distributed without permission.

2.3.4. Identity Governance: PIM and Audit Logs

💡 First Principle: Permanent admin access is a security liability — the longer elevated privileges exist, the larger the attack surface. Privileged Identity Management (PIM) solves this with just-in-time access: admins activate elevated roles only when needed, for a limited time, and with approval if required. Audit logs provide the historical record of who did what.

Think of PIM like a secure key lockbox. Instead of giving a contractor a permanent building key, you issue a time-limited key that expires after 2 hours and logs every time it's used. If the key is stolen, the damage is bounded. If something goes wrong, you have a record.

PIM capabilities:
  • Just-in-time (JIT) access: eligible admins activate a role when needed; it expires automatically
  • Time-bound assignments: roles can be active for a set duration (e.g., 1 hour, 8 hours)
  • Eligible vs active assignments: an eligible assignment grants no privileges until the user activates it (meeting any MFA, justification or approval requirement); an active assignment is in force from the moment it is assigned, with no activation step, and can be permanent or have a fixed end date. Each activation lasts no longer than the role's activation maximum duration (a per-role setting of 1–24 hours) and then expires automatically
  • Approval workflows: sensitive roles require manager or peer approval before activation
  • MFA on activation: require MFA before elevated access is granted
  • Access reviews (Entra ID P2 / Entra ID Governance): on a schedule, designated reviewers — resource owners, users' managers, or the users themselves — confirm whether each member of a group, an app's assigned users, or a role's eligible and active assignees still needs that access; denied (and, if configured, unanswered) entries are removed automatically. Because reviewers do the checking, it scales to large groups and catches access left behind when people change jobs. PIM governs when a role is active; access reviews govern who should still be assigned it

Audit logs in Microsoft Entra record two types of activity:

  • Sign-in logs: every authentication attempt — who signed in, from where, with what method, and whether it succeeded
  • Audit logs: every administrative action — who changed what configuration, when

These logs are the foundation for security investigations, compliance reviews, and incident response. In Microsoft Purview, the Unified Audit Log captures activity across M365 workloads (Exchange, SharePoint, Teams, Entra) in one searchable place.

⚠️ Exam Trap: PIM requires Microsoft Entra ID P2 licensing (included in E5, or as an add-on). If a question asks about just-in-time access for Microsoft Entra roles and the answer options include features that require P2, verify the licensing context. For orientation: Entra ID Free already includes SSO to SaaS apps, B2B collaboration and Entra Connect sync; P1 adds Conditional Access; P2 adds ID Protection (risk-based policies) and PIM.

Reflection Question: An admin activates the Global Administrator role using PIM to make a configuration change, then forgets to deactivate it. What PIM feature ensures the elevated access is automatically removed, and how long is the maximum default active duration?

See how it connects
Alvin Varughese
Written byAlvin Varughese
Founder•26 professional certifications earned