Standing administrative privilege is one of the most dangerous conditions in any Microsoft cloud estate. An account that is permanently Global Administrator or Owner on a subscription is a prize for attackers whether or not its user is doing administrative work that day. Microsoft Entra Privileged Identity Management (PIM) replaces permanent assignments with eligible ones: administrators activate a role only when they need it, for a limited time, with MFA, justification, and—for the most sensitive roles—approval.
Just-in-time privileged access with PIM
- EligibleUser may activate the role but does not hold it
- ActivateMFA, justification, ticket number
- ApproveRequired for the most sensitive roles
- Time-boundRole expires automatically after hours
- ReviewAlerts, audit history, access reviews
What PIM covers
PIM manages three kinds of privileged access: Microsoft Entra roles such as Global Administrator, Privileged Role Administrator, and Security Administrator; Azure resource roles such as Owner and User Access Administrator on management groups, subscriptions, and resource groups; and PIM for Groups, which makes membership of privileged groups time-bound. PIM requires Microsoft Entra ID P2 or Microsoft Entra ID Governance licensing for the users who benefit from it, so confirm licensing before rollout.
1. Inventory standing privilege
Start by listing every permanent assignment of high-privilege roles in Entra ID and Azure. Most organisations find more Global Administrators than they expected, service accounts with Owner on subscriptions, and former project members who still hold elevated roles. The goal is a small number of eligible administrators per role and almost no permanent assignments—except emergency access accounts.
2. Configure role settings
Each role has settings that define what activation requires. Configure the most sensitive roles strictly and less sensitive ones lightly, so the friction matches the risk.
| Role | Max activation | Requirements |
|---|---|---|
| Global Administrator | 1–2 hours | MFA (authentication strength: phishing-resistant), justification, approval by another admin |
| Privileged Role Administrator | 1–2 hours | Phishing-resistant MFA, justification, approval |
| Subscription Owner (production) | 2–4 hours | MFA, justification, ticket number, approval |
| Security Reader / Reader roles | 8 hours | MFA and justification |
| Contributor (non-production) | 8 hours | MFA and justification |
How does your cloud measure up?
Score your setup across foundation, delivery, reliability, security, and cost in 3 minutes—instant results, no email needed.
3. Convert permanent assignments to eligible
Make administrators eligible for the roles they genuinely need, then remove their permanent assignments. Communicate the change first and show people how to activate a role; the first week usually brings a few “I can't do my job” messages that disappear once activation becomes routine. Assignments can be managed in the portal, through Microsoft Graph, or as code.
data "azurerm_subscription" "prod" {
subscription_id = var.prod_subscription_id
}
data "azurerm_role_definition" "owner" {
name = "Owner"
scope = data.azurerm_subscription.prod.id
}
resource "azurerm_pim_eligible_role_assignment" "platform_admins_owner" {
scope = data.azurerm_subscription.prod.id
role_definition_id = "${data.azurerm_subscription.prod.id}${data.azurerm_role_definition.owner.id}"
principal_id = var.platform_admins_group_object_id
justification = "Platform team eligible Owner on production (CHG-1042)"
schedule {
expiration {
duration_days = 365 # eligibility itself is reviewed and renewed yearly
}
}
}Assigning eligibility to a group rather than individuals keeps management simple: membership of the platform admins group determines who can activate, and access reviews can target the group.
4. Protect emergency access accounts
Keep two cloud-only emergency access (break-glass) accounts with permanent Global Administrator, excluded from policies that could lock everyone out, such as conditional access rules that depend on a single MFA method or an on-premises identity service. Protect them with strong, separately stored credentials—Microsoft now recommends phishing-resistant methods such as FIDO2 keys for these accounts too—and alert on every sign-in. Test them on a schedule so you know they work when everything else has failed.
5. Combine PIM with conditional access
Conditional access authentication strengths let you require phishing-resistant MFA when activating sensitive roles, and policies can require privileged sessions to come from compliant devices or privileged access workstations. Together with PIM, this means an attacker who steals a password or even a one-time code cannot activate Global Administrator.
6. Monitor, alert, and review
- Enable PIM alerts for roles assigned outside PIM, too many Global Administrators, and stale eligible assignments.
- Send PIM activation and assignment events to your SIEM, such as Microsoft Sentinel, and alert on activations outside working hours or without a ticket reference.
- Run access reviews on eligible assignments and privileged groups quarterly; remove people who no longer need them.
- Review the audit history for patterns—frequent activations may mean a role is too broad or a task should be automated.
7. Remove privilege from automation too
PIM is for humans; automation should not hold standing Owner either. Give pipelines and service principals narrowly scoped roles, use workload identity federation instead of client secrets, and split read-only plan identities from write-capable deployment identities. Otherwise attackers simply target the automation instead of the administrators.
Rollout plan
- Confirm licensing and inventory all privileged assignments.
- Create and test two emergency access accounts with sign-in alerts.
- Configure role settings per role sensitivity.
- Make administrators eligible and remove permanent assignments, starting with Global Administrator.
- Extend to Azure resource roles on management groups and production subscriptions.
- Add phishing-resistant authentication strength for sensitive activations.
- Turn on alerts, SIEM integration, and quarterly access reviews.
What changes for administrators day to day
After rollout, an administrator who needs to change a conditional access policy opens the PIM page or the My Roles view, selects the Conditional Access Administrator role, enters a justification and ticket number, completes a phishing-resistant MFA prompt, and waits for approval if the role requires it. The role becomes active within moments and expires automatically after the configured window. For most daily work—reading configuration, reviewing logs, managing non-production resources—lower-privilege roles that do not require approval are enough. The extra minute or two per elevation is the price of making a stolen session far less valuable.
Common pitfalls
- Making everyone eligible for Global Administrator instead of assigning narrower built-in roles such as User Administrator or Exchange Administrator.
- Activation windows of eight hours or more for the most sensitive roles, which recreates standing privilege during the working day.
- Approvers who approve everything without reading the justification.
- Emergency access accounts included in conditional access policies that could lock them out, or never tested.
- Service principals left with permanent Owner while humans move to just-in-time access.
Measure success with a few numbers: permanent privileged assignments (target close to zero), activations per role per month, approval turnaround time, and findings from quarterly access reviews.
Start with Global Administrator and Privileged Role Administrator, because they control everything else. Once those are just-in-time, move to Azure resource roles on production subscriptions, then privileged groups and application administrator roles.
Document the activation process in one short page with screenshots, and link it from the PIM notification emails, so new administrators can elevate correctly on their first day without asking for help.
Checklist
- No permanent high-privilege assignments except tested emergency accounts.
- Eligible assignments, preferably to groups, for administrators who need them.
- Short activation windows with MFA, justification, and approval for the most sensitive roles.
- Phishing-resistant MFA required for privileged activation.
- Alerts and SIEM monitoring on activations and out-of-band assignments.
- Quarterly access reviews of eligible assignments and privileged groups.
- Least-privilege, secretless identities for automation.
Removing standing privilege is one of the highest-impact security changes in a Microsoft estate, and with PIM it is mostly configuration and communication. Our Azure security and landing zone work implements it alongside conditional access and policy guardrails.
Key takeaways
- Remove standing Owner and broad admin roles where PIM can elevate just-in-time.
- Require MFA, justification, and reviews on privileged activations.
- Design landing zone RBAC so daily work does not need global admin.
FAQ
Does PIM slow teams down?
Slightly for rare elevations—and dramatically reduces blast radius when credentials leak. Eligible roles plus automation cover most delivery needs.
What should we monitor?
Activation frequency, approvals, failed elevations, and privileged role assignments that bypass PIM.