Description
The roles in {{ highly_privileged_roles }} are only assigned as eligible in Microsoft Entra
Privileged Identity Management (PIM): holders activate the role for a limited time when they need
it. No active assignment is permanent, and the role settings forbid permanent active assignments.
Assignments are made through PIM only, not directly in Roles & admins or by a third-party
tool that bypasses PIM.
The emergency access accounts (CB-M365-ADMIN-002) are the only permanent active Global Administrators.
PIM settings are per role. Groups assigned to roles can be managed with PIM for Groups; their membership then follows the same rules.
Rationale
With just-in-time access, a stolen admin account has no privilege until the attacker manages to activate the role, which requires MFA, a justification and possibly an approval, and raises an alert. Activations are time-bound, so privileges disappear when the work is done. Assignments made outside PIM escape these settings and the PIM audit trail.
Impact
Administrators activate their role before each admin session, which adds a minute and needs MFA. Automation that relies on a user holding a role must move to a workload identity with the right application permissions. Every eligible user needs an Entra ID P2 (or ID Governance) license.
Applies when
Requires: Microsoft Entra ID P2
Parameters
| Parameter | Baseline | Hardened | Bounds |
|---|---|---|---|
highly_privileged_roleslist. Built-in roles that must never hold permanent active assignments. | Global Administrator, Privileged Role Administrator, Privileged Authentication Administrator, Security Administrator, User Administrator, Exchange Administrator, SharePoint Administrator, Hybrid Identity Administrator, Application Administrator, Cloud Application Administrator | Global Administrator, Privileged Role Administrator, Privileged Authentication Administrator, Security Administrator, User Administrator, Exchange Administrator, SharePoint Administrator, Hybrid Identity Administrator, Application Administrator, Cloud Application Administrator |
The value used is your override (tailoring file), else the profile's, else the one of the profile it extends, else the default. Bounds limit what an override may set.
Audit
- Sign in to the Microsoft Entra admin center (https://entra.microsoft.com) as at least a Global Reader.
- Browse to ID Governance > Privileged Identity Management > Microsoft Entra roles > Assignments > Active assignments. For each role in the list, any active assignment with End time Permanent other than the emergency access accounts is a finding.
- Browse to Roles, open each role > Role settings: under Assignment, Allow permanent active assignment is No.
- Browse to Entra ID > Monitoring & health > Audit logs, filter on Category RoleManagement and Activity Add member to role: entries not initiated by MS-PIM show assignments made outside PIM.
- Read-only PowerShell alternative (Microsoft Graph, scope
RoleManagement.Read.Directory):Get-MgRoleManagementDirectoryRoleAssignmentScheduleInstance -All -ExpandProperty RoleDefinition | Where-Object { $_.AssignmentType -eq 'Assigned' -and -not $_.EndDateTime } | Select-Object PrincipalId, @{n='Role';e={$_.RoleDefinition.DisplayName}} - Fail if a listed role has a permanent active assignment other than the emergency accounts, if permanent active assignment is allowed in its settings, or if assignments are made outside PIM.
Remediation
- With a Privileged Role Administrator, browse to ID Governance > Privileged Identity Management > Microsoft Entra roles > Roles, open each listed role > Role settings > Edit.
- Activation: maximum duration 8 hours or less, require MFA (or the phishing-resistant authentication context) and a justification.
- Assignment: set Allow permanent active assignment to No and Expire active assignments after to a short period.
- In Assignments > Active assignments, for each permanent assignment except the emergency accounts, select Update and change it to Eligible, or remove it and add an eligible assignment.
- Tell administrators to activate roles from My roles in PIM, and stop direct assignments in Roles & admins.
- Equivalent with Microsoft Graph:
New-MgRoleManagementDirectoryRoleEligibilityScheduleRequestto create the eligible assignment, thenNew-MgRoleManagementDirectoryRoleAssignmentScheduleRequest -Action adminRemoveto remove the active one.
Rollback
Convert the eligible assignment back to active in PIM with a Privileged Role Administrator or an emergency access account.
References
- Plan a Privileged Identity Management deployment Microsoft, vendor-doc, accessed 2026-10-24
- Configure Microsoft Entra role settings in Privileged Identity Management Microsoft, vendor-doc, accessed 2026-10-24
- Assign Microsoft Entra roles in Privileged Identity Management Microsoft, vendor-doc, accessed 2026-10-24
Mappings
| Framework | ID | Relation | Note |
|---|---|---|---|
| ANSSI - Recommandations relatives à l'administration sécurisée des systèmes d'information3.0 | R39 | partial | Covers time-bound privilege on highly privileged Entra roles only. |
| NIST SP 800-53 Rev. 55.1.1 | AC-2(6) | related | |
| NIST SP 800-53 Rev. 55.1.1 | AC-6(5) | related | |
| CISA SCuBA Microsoft 365 Secure Configuration Baselines2.0.0 | MS.AAD.7.4v1 | equivalent | |
| CISA SCuBA Microsoft 365 Secure Configuration Baselines2.0.0 | MS.AAD.7.5v1 | equivalent |
How this control relates to the other framework's: equivalent, stricter, looser, partial or related.
Threats mitigated
| Taxonomy | ID |
|---|---|
| MITRE ATT&CK | T1078.004 |
| MITRE ATT&CK | T1098 |
Related controls
- related
CB-M365-ADMIN-001Use dedicated, named, cloud-only accounts for administrative roles - related
CB-M365-ADMIN-002Keep two protected emergency access accounts - related
CB-M365-ADMIN-007Require approval to activate the Global Administrator role - related
CB-M365-ADMIN-008Require approval to activate the Privileged Role Administrator role - related
CB-M365-ADMIN-009Alert on assignment and activation of highly privileged roles - related
CB-M365-ADMIN-010Review privileged role assignments periodically - related
CB-M365-ADMIN-011Remove unused and orphaned privileged role assignments - related
CB-M365-ADMIN-014Protect groups that grant privileges or bypass security policies - related
CB-M365-ADMIN-018Keep Global Administrator elevated access to Azure resources turned off - related
CB-M365-AUDIT-012Restrict who can read, disable or shorten Microsoft 365 audit logs
People and lifecycle
| Authors |
|
| Introduced in | v0.1.0 |
| Created, updated | 2026-10-24, 2026-10-24 |
| Translations | fr |