Designing Just-in-Time Privileged Access
This lesson explains how Privileged Identity Management removes standing access.
Learning outcomes
After completing this lesson, you will be able to:
- Distinguish eligible from active assignments.
- Describe role activation settings.
- Identify further measures that protect privileged accounts.
Standing and just-in-time access
A permanent Owner assignment is a risk at all times, whether or not the holder is working, since a stolen account can be used immediately. Just-in-time access reduces that exposure window: a user has no active privilege until the moment it is needed, and the privilege then expires automatically. Microsoft Entra Privileged Identity Management (PIM) provides this model for Microsoft Entra roles, Azure resource roles and groups.
Eligible and active assignments
PIM introduces two assignment types. An eligible assignment means that a user may activate the role when needed, while an active assignment grants the role now. Both may be permanent or time-bound. Administrators usually receive eligible assignments, sometimes time-bound for a project, so no one holds permanent active privilege except emergency access accounts.
Role settings define what activation demands. These may include MFA, a stronger Conditional Access authentication context, a business justification, a ticket number, and approval from a nominated person. The maximum activation duration limits how long the role stays active, commonly a few hours. All activations are logged, and alerts can flag unusual use. PIM for Groups extends the model to membership of a group, so that one activation can grant a collection of roles.
-
Assign as eligible
An administrator makes a group eligible for a role at a chosen scope.
-
Request activation
When work is needed, the user activates the role and gives a justification.
-
Satisfy the controls
The user completes MFA, and an approver accepts the request if approval is required.
-
Use the role
The role is active for the configured time, and the actions are audited.
-
Expiry
The role deactivates automatically, returning the user to no standing privilege.
A PIM activation
Protecting the highest privileges
Several additional measures belong in a privileged access design. Global Administrator assignments should be few, with Microsoft recommending fewer than five. Administrators should use separate, cloud-only accounts for privileged work, so that a compromise of on-premises AD DS cannot spread to cloud administration. Two emergency access accounts, excluded from Conditional Access and monitored for use, protect against lockout. Access to administrative portals should use phishing-resistant authentication.
Designing role settings by risk
Role settings should reflect the power of each role, and using one setting for everything is a common weakness. A role such as Global Administrator or subscription Owner justifies the strictest settings: approval by a second person, a short activation period, and a phishing-resistant authentication strength. A lower-impact role, such as Reader on a resource group, may not need PIM at all. Between them, a role such as Contributor on a workload subscription might need only MFA and a justification, as an approval requirement on a frequent task encourages approvers to accept requests without reading them.
Approval design should also consider availability. If only one person can approve and that person is unavailable during an incident, the control delays the response. At least two approvers should be named, and they should be in a group, ideally in different time zones for a global operation. Emergency access accounts remain outside this process, for the case in which PIM or Conditional Access itself prevents administration, and any use of them should trigger an immediate alert.
The following diagram follows one Privileged Identity Management role activation from request to audit.

Settings that match the role
Scope of privileged access
PIM manages three kinds of privilege, and a design usually needs all of them. Microsoft Entra roles, such as User Administrator, control the directory. Azure resource roles, such as Owner, control resources at any scope in the hierarchy. Groups allow membership itself to be just-in-time, which is useful when a role must be granted to a set of people, or when a team needs several roles that activate together.
Assignment scope matters as much as the activation process. A role that is eligible at a management group becomes powerful across many subscriptions when activated, so eligible assignments should still follow the narrowest scope that covers the work. PIM alerts can flag roles that are assigned outside PIM, and accounts that have not activated a role recently, which can indicate an assignment that is no longer needed. Access reviews can then confirm whether these eligible assignments should remain.
Designing role activation
A company's network engineers make firewall changes about twice a month. Each change must be approved by a security officer, and auditors require a record of who held the access and why. Access must never exceed two hours. The company has Microsoft Entra ID P2. What should you recommend?
PIM meets all of the requirements. Engineers join a group that is eligible for Network Contributor at the connectivity subscription. Role settings require approval by the security officer, a justification and a maximum activation of two hours.
Each activation is logged, which meets the audit requirement. A time-bound active assignment would remain active continuously during its validity and would not require approval for each use. A custom role would reduce permissions but would not provide just-in-time access, and a Conditional Access policy controls sign-in, not whether a role assignment exists.
How does an eligible assignment differ from a time-bound active assignment?
Show answer
An eligible assignment grants nothing until it is activated, with any required controls. A time-bound active assignment grants the role throughout its period.
Exam Tips
Remember for the exam
- Eligible assignments require activation; active assignments grant the role now.
- Activation can require MFA, justification, approval and a maximum duration.
- Use cloud-only administrative accounts and two monitored emergency access accounts.
- PIM for Groups activates a collection of roles at once.