Just-in-time access: activate only the privilege needed, for only as long as needed
Distinguish eligible from active roles, then design requests, approvals, expiry checks and downstream revocation verification.
Just-in-time access: activate only the privilege needed, for only as long as needed
Just-in-time (JIT) access activates permission when a task requires it and makes it unavailable again after a defined period. Instead of leaving administrators permanently privileged, an eligible user can request a bounded role shortly before work. Expiry on a timer does not always remove access immediately in every application: role propagation, caches and already-open sessions matter too.
This guide helps system and security teams design or review privileged JIT from request through expiry verification. JIT is one control used within privileged access management (PAM); by itself it does not replace device security, authentication or session monitoring. Product steps are limited to documented Microsoft Entra Privileged Identity Management (PIM) behavior.
Eligible is different from active
A user may be assigned a role as eligible in advance. That does not mean the role is always usable. When work arises, the user requests activation and completes whatever authentication, justification and approval requirements the policy configures. An organization may require a person to review every request, but approval is not inherent in every JIT flow.
| Assignment state | What the user does before work | When permission is usable |
|---|---|---|
| Active | Nothing to activate | While the assignment remains valid |
| Eligible | Complete configured steps such as request, authentication or justification | For the configured duration after activation is approved or otherwise allowed |
| Time-bound active | No activation request | Between its predetermined start and end times |
A time-limited assignment is not necessarily an on-demand activation. Microsoft Entra PIM documentation describes permanent active, time-bound active, permanent eligible and time-bound eligible assignments as distinct states.
From request to removal
**Assign eligibility:** Define the user, role, target resource scope and eligibility end date; confirm the work purpose and owner.
**Request work:** The user specifies the resource, task, reason and requested end time. A ticket number can link to a change record, but a text field alone does not verify that ticket or its approval.
**Check requirements:** The system evaluates configured authentication, device or session conditions and any administrator or peer approval. Approvers should review scope and task rationale, not only the requester’s role.
**Activate:** After requirements are met, the role becomes active and the user performs the approved work.
**Verify expiry:** At the end time, the assignment should be deactivated or removed. Check that the target service received the change and determine what permissions an existing session retains; the management console alone may not show effective application access.
**Audit:** Correlate request, approval, activation, use and expiry. Investigate unauthorized activity and recurring emergency requests that may signal a role or process gap.
Hypothetical example: urgent change to a scoped Azure resource
This is an illustrative scenario, not a performed or tested operation. An operator needs to change one service setting for an incident. The operator normally holds only an eligible role. They request activation scoped to that service for the maximum time needed. Depending on policy, MFA, a reason and approver review may be required. If approval is required, the request remains pending until approved.
After the change, the operator deactivates the role when possible and checks the scheduled end time. A removed assignment does not prove that every application cache or open session has refreshed. Microsoft documents that an application may cache role state, so access may be delayed both when a role is added and when it is removed. For sensitive work, verify access in the target app and, when policy calls for it, sign out, end the session or use another approved revocation step.
Design safer JIT policy
**Limit scope:** Prefer a resource or task-specific role over a broad administrator role. If the platform cannot narrow scope, separate roles or another control may be needed.
**Set a useful duration:** Balance the task time with reapproval cost. Excessive duration resembles standing access; too little can trigger repeated activation or workarounds.
**Make requests verifiable:** Link reason, ticket, target and task to a change record that approvers can actually inspect. Collecting a ticket number alone does not verify the ticket system.
**Separate approval:** The requester should not be their sole approver. Define backups suited to the role’s impact and time zone, plus a separate emergency process.
**Use strong authentication and trusted conditions:** Require stronger authentication for high-impact privilege. JIT does not automatically stop account takeover or a compromised administrator device.
**Check effective expiry:** Distinguish assignment end time from application caches, tokens and sessions. Limit the time those layers can preserve access and define how sessions end.
**Document standing exceptions:** Automation, on-call and recovery identities may need a different model. Give necessary standing access an owner, reason, compensating controls and review date; detect and review emergency use.
Verify behavior and recover safely
Before rollout, test with a test account or limited scope.
| Test | Expected result | Where to look if it fails |
|---|---|---|
| Eligible user requests the right scope | Configured authentication and approval precede activation | Role assignment, resource scope and approval state |
| Request is awaiting approval | Work is blocked until approval | Approver assignment, notification and request state |
| Requested period ends | Role stops working and expiry is recorded | Active assignment, service cache and open session |
| User requests the wrong scope | Narrow the request or deny it | Whether the role supports resource-level scope |
| Approval or privilege service is unavailable | No automatic allow beyond the explicit fallback | Incident notice, emergency account and bypass logs |
| Access remains after work | Safely terminate remaining session or cache path | Target application, token and session refresh behavior |
In Microsoft Entra PIM’s documented role-activation flow, an eligible user selects a role, completes required verification, can narrow scope where supported, and enters a reason. If policy requires approval, the request waits. This is a product-specific documented flow, not a promise that other JIT products expose the same screens or requirements. Check the current official guide for the product, role scope, licensing, approval settings and revocation propagation you actually deploy.
Choose JIT by weighing reduced standing access against activation and approval overhead. It can suit high-impact administration, but putting every privilege through the same workflow can create approval burden and recovery delay. Use risk-based requirements for routine administration, high-risk changes and emergency recovery, then adjust broad or recurring requests based on real usage logs.
References
[Microsoft Learn: What is Microsoft Entra Privileged Identity Management?](https://learn.microsoft.com/en-us/entra/id-governance/privileged-identity-management/pim-configure)
[Microsoft Learn: Activate a Microsoft Entra role in PIM](https://learn.microsoft.com/en-us/entra/id-governance/privileged-identity-management/pim-how-to-activate-role)
[NIST SP 800-53 Rev. 5, AC-6 least privilege](https://csrc.nist.gov/pubs/sp/800/53/r5/upd1/final)