Just-in-time access

Also known as: JIT access

On this page 7

Just-in-time access (JIT access) is an access control model in which elevated permissions are granted on demand, for a specific task and a limited time, and are revoked automatically when that window closes. In cybersecurity, and particularly in identity & access management, it replaces standing privileges that exist permanently with privileges that exist only while they are actually used.

The core idea is to shrink the window of exposure. An administrator account that holds rights around the clock is valuable to an attacker at any moment, while an account that receives rights for 60 minutes after an approved request offers a far smaller target. Just-in-time access therefore supports least privilege and the zero standing privileges goal promoted by modern zero trust architectures.

How just-in-time access works

A just-in-time access system follows a request, decision, grant and revoke cycle. A user or workload asks for a defined permission set, a policy engine or a human approver evaluates the request, the system grants the permission for a bounded duration, and an automated process removes it at expiry or when the user releases it early.

The grant itself can take several technical forms: temporary group or role membership, a short-lived credential such as a signed certificate or token, or ephemeral accounts created for a single session and deleted afterward. Every step is logged, which gives auditors a record of who held which privilege, when and why.

The table below lists the components that a just-in-time workflow typically relies on.

ComponentFunctionTypical implementation
Request interfaceCaptures scope, duration and justificationSelf-service portal, chat command, CLI
Policy engineEvaluates rules, risk and contextApproval rules, conditional access signals
Approval stepAdds human review where requiredManager, resource owner or peer approval
Provisioning mechanismGrants the privilegeRole activation, certificate or token issuance
Expiry and revocationRemoves the privilege automaticallyTimer, session end, manual release
Audit trailRecords the full lifecycleLogs sent to a SIEM or compliance store
Components of a just-in-time access workflow

Types of just-in-time access and key parameters

Just-in-time access is implemented in several models that differ in how the privilege is delivered. Choosing among them depends on the target system, the frequency of use and whether credentials can be issued dynamically.

ModelHow privilege is deliveredBest suited to
Role elevationExisting account temporarily gains a privileged roleCloud consoles, directory administration
Ephemeral accountTemporary account created and later deletedServers and databases without role support
Short-lived credentialCertificate or token with a brief validity periodSSH, Kubernetes, cloud APIs
Brokered sessionProxy opens a recorded session without exposing secretsVendor and third-party access
Credential checkoutVaulted password released and rotated after useLegacy systems with shared accounts
Common just-in-time access models

Several parameters determine how strict a deployment is. Maximum duration commonly ranges from 15 minutes to 8 hours, depending on the task. Approval mode can be automatic for low-risk roles or require one or two approvers for high-impact ones. Scope granularity defines whether the user receives a whole administrative role or only a narrow permission on a single resource, and narrower scopes give stronger protection at the cost of more requests.

Just-in-time access is a temporal layer on top of other authorization models, not a replacement for them. Role-based or attribute-based access control decides what a person may be eligible for, while just-in-time access decides when that eligibility becomes an active permission.

ConceptMain question answeredRelation to just-in-time access
Standing privilegeWho holds rights permanentlyThe model JIT access is designed to replace
RBACWhich roles a user may holdDefines the eligible roles that JIT activates
ABACWhich attributes permit an actionSupplies context for JIT approval decisions
Privileged access managementHow privileged accounts are governedPlatform that usually delivers JIT capabilities
Conditional accessUnder which conditions sign-in is allowedAdds device and risk checks to JIT requests
Just-in-time access and neighboring concepts

A related term, just-enough access, describes limiting the scope of a grant rather than its duration. Mature programs combine both, so that a user receives only the needed permission and only for the needed time.

Implementing just-in-time access in practice

A successful rollout starts with an inventory of standing privileges and the people and workloads that hold them. Organizations then convert permanent assignments into eligible assignments, beginning with the most powerful roles, such as global administrators, domain administrators and cloud owner roles.

  • Require strong authentication at activation time, ideally phishing-resistant MFA, so that a stolen session alone cannot elevate privilege.
  • Demand a justification linked to a ticket or change record to connect each grant to a business reason.
  • Keep break-glass accounts outside the JIT system, tightly monitored, for recovery when the identity provider fails.
  • Review activation patterns regularly to find roles that are requested so often that the scope should be redesigned.

Machine identities need the same discipline. Pipelines and services should obtain short-lived credentials through workload identity federation instead of storing long-lived keys, which applies just-in-time principles to non-human accounts that often hold the broadest permissions.

Limitations, risks and common mistakes

Just-in-time access reduces exposure but does not eliminate the risk of a compromised user who elevates legitimately. During the active window the account is as powerful as a standing administrator, so monitoring of privileged sessions remains essential. The table below lists frequent problems.

ProblemCauseFix
Approval fatigueToo many manual approvals for routine tasksAuto-approve low-risk roles with strong MFA
Overly long windowsDefault durations of a full day or moreSet durations per role and allow early release
Residual standing accessOld permanent assignments left in placeAudit and remove permanent assignments
Slow emergency responseApprovers unavailable during incidentsDefined on-call approvers and break-glass process
Tokens outliving revocationCached sessions remain valid after expiryShort token lifetimes and session revocation
Frequent problems and their fixes

The simple explanation

Just-in-time access works like a hotel key card that opens a room only for the nights you booked. Instead of giving staff a permanent master key, the system hands out a key that works for one job and then stops working.

If a thief steals someone’s login when no key is active, there is nothing powerful to steal. That is the main benefit: fewer powerful keys exist at any given moment, so mistakes and break-ins cause less damage.

How it is used in practice

A regional healthcare provider runs its patient systems in a public cloud. Previously, twelve engineers held permanent owner rights on the production subscription. After an audit, the security team converts these assignments into eligible roles that must be activated through a just-in-time workflow.

An engineer who needs to patch a database now requests the database administrator role for two hours, enters the change ticket number and confirms the request with a hardware security key. A second engineer approves it, the role expires automatically, and the session is logged. Within three months the provider reduces standing privileged accounts from twelve to two break-glass accounts, and auditors can trace every production change to a named person and an approved reason.