Join our Newsletter — 33% off our NHI Course
Home› Guides› Credential Vaulting vs Just-in-Time Elevation: Choosing a PAM…
Guide Privileged Access (PAM)

Credential Vaulting vs Just-in-Time Elevation: Choosing a PAM Architecture

← All guides
By NHI Mgmt Group, edited by Lalit Choda Updated 13 November 2026 13 min read
On this page

Privileged access programmes usually start by vaulting shared admin passwords, then discover that a vaulted credential which never expires is still standing privilege, and that just-in-time elevation solves a different part of the same problem. This guide compares the two PAM architectures directly: credential vaulting, where the privileged account exists permanently and the secret is checked out under control, and just-in-time (JIT) elevation, where the privilege itself is granted for a task and removed afterwards. It covers what each protects against, where each fails, when to choose which, and how mature programmes combine them. It is for PAM owners, identity architects and security leaders choosing or reshaping a PAM design. Background on each pattern lives in the Privileged Access Management Guide and the JIT Access Guide.

Key takeaways

  • Vaulting controls the secret; JIT controls the privilege. A vault decides who may use a standing privileged account and records it. JIT decides whether the privilege exists at all at a given moment.
  • Each closes a different gap. Vaulting fixes shared, unknown and unrotated passwords. JIT fixes permanent role assignments and dormant admin rights that attackers inherit when they compromise an account.
  • Eligible is not the same as safe. Microsoft's PIM documentation notes that an eligible role grants the same access as an active one once activated, so activation controls (MFA, approval, justification) carry the weight.
  • Some privilege cannot be made just in time. Local administrator, network device, database and break-glass accounts often have to exist permanently, so they still need vaulting and rotation.
  • Mature programmes use both. JIT for directory and cloud roles, vaulting with rotation and session brokering for accounts that must persist, and a shared approval and audit trail across them.

What each architecture is

Credential vaulting

The privileged account exists all the time, with its full rights. Its password, key or certificate is stored in a vault that controls checkout, requires approval for sensitive accounts, rotates the credential on a schedule or after use, and often brokers the session so the user never sees the secret. The control point is the credential. Discovery and onboarding of accounts into the vault is the first major workstream; see the Privileged Account Discovery and Onboarding Guide. A narrow example of the vaulting model built into an operating system is Windows LAPS, which Microsoft describes as rotating each device's local administrator password and backing it up to Microsoft Entra ID or Active Directory so that devices do not share one password attackers can reuse to move laterally.

Just-in-time elevation

The user (or workload) has a normal identity with no standing privilege, and is eligible to receive a privileged role or group membership for a limited time after meeting conditions: MFA, justification, approval, ticket reference. When the time ends the privilege is removed. The control point is the entitlement. NIST SP 800-53 Rev 5 supports this pattern through AC-2(2) Automated Temporary and Emergency Account Management and AC-6 Least Privilege. Variants include temporary role assignment, temporary group membership, ephemeral accounts created for a session and deleted afterwards, and endpoint elevation of a single process.

Cloud and directory platforms document native JIT features. Platforms are listed alphabetically:

  • AWS: the IAM Identity Center documentation describes temporary elevated access as a way to request, approve and track use of a permission for a specific task during a specified time, supplementing permission sets and MFA, and delivered through validated partner solutions.
  • Google Cloud: Privileged Access Manager defines entitlements (eligible principals, roles, maximum grant duration, justification, optional approvers) and grants, revokes roles automatically when the grant ends, and logs events to Cloud Audit Logs.
  • Microsoft Entra: Privileged Identity Management provides eligible and active assignments, time-bound access, approval, MFA on activation, justification, notifications, access reviews and audit history.

Availability: Microsoft documents that PIM requires Microsoft Entra ID Governance or equivalent licences. Google documents some Privileged Access Manager features, such as multi-level approvals and grant scheduling, as Preview, with some requiring Security Command Center Enterprise or Premium. AWS directs customers to review partner solutions against their own needs and budget.

Side-by-side comparison

PropertyCredential vaultingJust-in-time elevation
Control pointThe credential of a standing privileged accountThe privilege assignment itself
Standing privilegeYes: the account always holds its rightsNo, or minimal: rights exist only during the grant
Who is accountableShared account; attribution comes from checkout and session recordsNamed identity holds the role; attribution is native
Main threat addressedUnknown, shared, reused and unrotated passwords; credential theft from scripts and filesDormant admin rights inherited by an attacker who takes over a user or workload
Residual riskThe account can be used outside the vault if the secret leaks before rotation; the vault becomes a high-value targetActivation can be abused by whoever controls an eligible identity; role definitions may be too broad
Works forLocal admin, root, network devices, databases, legacy apps, break-glass, service accountsDirectory roles, cloud IAM roles, SaaS admin roles, groups, endpoint elevation
Session controlCommonly brokered and recorded through the PAM proxyDepends on the platform; often audit events rather than recorded sessions
Rotation needCentral: rotate on schedule and after checkoutLow for the privilege; the user's own credential still needs strong authentication
Failure mode at outageVault outage blocks admin work unless break-glass existsApproval or activation service outage blocks elevation unless break-glass exists

Choosing: decision guidance

TargetPreferred patternWhy
Entra ID, Active Directory admin groups, cloud IAM admin rolesJIT elevation of named accountsPlatform supports eligibility; removes permanent admin membership
Windows local administrator on endpoints and serversVaulting with per-device rotation (for example LAPS) plus endpoint elevation for usersThe account must exist; unique rotated passwords stop lateral movement
Linux root and sudoJIT sudo rules or certificate-based access where possible; vaulting for rootRoot persists; sudo rights can be granted for a window
Network devices, appliances, OT systemsVaulting with session brokeringFew support external role assignment
DatabasesVaulting, or dynamic short-lived database users issued per sessionBuilt-in admin accounts persist; dynamic users approximate JIT
SaaS administrator rolesJIT where the SaaS supports it, otherwise vaulting of a dedicated admin accountSupport varies by application
Break-glass accountsVaulting with dual control, monitoring and post-use rotationMust work when JIT and federation are down; see the Break-Glass Account Guide
Service accounts and workloadsWorkload identity and short-lived tokens first; vaulting with rotation where a static secret remainsMachines cannot approve their own elevation interactively

Small organisations often get the largest risk reduction from turning on the JIT feature of their identity or cloud platform for the handful of global administrator roles, plus LAPS or equivalent for local admin, before buying a full vault. Large organisations usually already vault thousands of accounts; the next step is to remove standing directory and cloud roles through JIT, and to put both under one request, approval and audit process. Regulated environments that require session recording for specific systems will keep a brokered vault path for those systems regardless.

Security trade-offs in detail

  • Vault concentration: a vault holds keys to everything, so its own admins, recovery keys, backups and integration credentials need the strictest controls. Embedded credentials that let scripts call the vault are a known weak point. See the PAM vault health check.
  • Rotation gap: a vaulted password that is checked out and not rotated after use is a standing credential in the user's hands until the next scheduled change.
  • Activation is the new perimeter: with JIT, the security of privileged access is the security of the eligible account plus the activation step. Require phishing-resistant MFA at activation and approval for the highest roles; Microsoft's privileged access strategy notes that implementing a PIM/PAM solution alone is not sufficient.
  • Role design: JIT grants the whole role. A broad role activated for eight hours is still broad; define task-sized roles and short maximum durations.
  • Self-approval and approval fatigue: approvers who rubber-stamp requests turn JIT into standing access with extra steps. Track approval times and denials.
  • Platform bindings: Google documents that Privileged Access Manager works by adding and removing role bindings with time conditions, and that manually changing those bindings can break its behaviour. Treat platform JIT bindings as managed objects.

How they work together

A combined architecture uses one request and approval workflow, with two fulfilment paths. For roles the platform can grant temporarily, the workflow activates an eligible assignment for a named identity. For accounts that must persist, the workflow releases a vaulted credential or opens a brokered session, then rotates the credential after use. Some PAM platforms also create ephemeral local accounts or grant temporary group membership, which brings JIT behaviour to targets that previously needed vaulting. Session records, activation logs and checkout logs go to the same SIEM so reviewers see one trail. The Cloud PAM and CIEM Guide covers the cloud side of this design.

Where non-human identities fit

Both patterns were designed around people, and both need adapting for machines. A service account, automation runbook or AI agent cannot answer an MFA prompt or wait for a human approver on every run, so interactive JIT rarely fits directly. The machine equivalents are:

  • Short-lived, federated credentials issued per run, such as cloud workload identity or OIDC federation from CI, which give JIT behaviour without a stored secret. See the Workload Identity Federation Guide.
  • Dynamic secrets issued by a secrets manager with a lease, which approximate JIT for databases and other targets that need a username and password.
  • Vaulting with automatic rotation for service accounts whose password must persist, with the consuming application reading the current value from the vault rather than holding a copy.
  • Human approval at the right level: approve the pipeline change or the agent task, not each credential use, and scope the machine role so that the approved task is all it can do.

Count machine accounts with standing privilege in the same metrics as human ones; they usually outnumber them.

How to implement: phased approach

  1. Discover: inventory standing privileged role assignments in directories, cloud and SaaS, and privileged local, device, database and service accounts.
  2. Classify each as JIT-capable (the platform supports eligible or time-bound assignment) or persistent (must be vaulted).
  3. Quick wins: convert top-tier directory and cloud admin roles to eligible assignments with MFA and justification; enable per-device local admin rotation.
  4. Vault the persistent accounts by tier, starting with domain-level and production database accounts, with rotation after checkout.
  5. Pilot: run JIT for one admin team first, with a fallback eligible path and documented break-glass, and measure activation friction for two to four weeks.
  6. Remove standing assignments once the pilot holds; keep a short list of approved exceptions with owners and review dates.
  7. Roll back by temporarily restoring a time-bound active assignment for a named user, never by re-adding permanent group membership, and record it as an incident.
  8. Unify audit and run periodic reviews of eligibility as well as active assignments.

Detection and measurement

Monitor: role activations outside business hours or without a linked ticket; activations of the highest roles; repeated activation of the same role by the same person (a sign the role should be redesigned or the person needs a different path); privileged role assignments created outside the JIT tool; vault checkouts of accounts not followed by rotation; logons by vaulted accounts that did not come through the vault or broker, which indicate the secret is in use elsewhere. See the Privileged Session Management Guide.

Metrics:

  • Standing privileged role assignments for humans (target close to zero outside break-glass).
  • Percentage of persistent privileged accounts under vault control with automatic rotation.
  • Median activation duration versus maximum allowed.
  • Privileged logons not originating from the vault, broker or JIT workflow.
  • Approval turnaround time and denial rate for high-tier roles.
  • Time from checkout to rotation for vaulted accounts.

Common failure patterns

  • Vaulted but never rotated: accounts are onboarded but rotation is off because an application would break, so the vault is an expensive password list.
  • Credentials outside the vault: admin credentials remain in scripts and shares. In the Uber Breach 2022 the attacker claimed to have found a script with hard-coded admin credentials on an internal share.
  • JIT over permanent roles: eligible assignments are added but the old permanent assignments are never removed.
  • Weak activation: activation requires only the same session that signed in, without fresh MFA or approval, so an attacker with the session activates the role.
  • Oversized roles: the only eligible role is a global administrator role, used for small tasks.
  • No break-glass path: a vault or identity provider outage blocks all privileged access, prompting emergency permanent assignments that are never removed.

Framework mapping

FrameworkReferenceRelevance
NIST SP 800-53 Rev 5AC-2(2) Automated Temporary and Emergency Account Management; AC-2(7) Privileged User AccountsTemporary privileged assignment and role-based privileged accounts
NIST SP 800-53 Rev 5AC-6(5) Privileged Accounts; AC-6(9) Log Use of Privileged FunctionsRestricting and logging privilege
NIST SP 800-53 Rev 5IA-5(1) Password-based Authentication; IA-5 Authenticator ManagementVaulted credential lifecycle and rotation
NIST CSF 2.0PR.AA-05; PR.AA-01Least privilege; managed credentials
MITRE ATT&CKT1078.002 Domain Accounts; T1078.004 Cloud Accounts; T1555 Credentials from Password StoresAbuse of standing privileged accounts and of credential stores
MITRE ATT&CK mitigationM1026 Privileged Account Management; M1032 Multi-factor AuthenticationCore mitigations for both patterns
ISO/IEC 27001:2022 Annex AA.8.2 Privileged access rights; A.5.17 Authentication informationAllocation of privilege and secret management

Practitioner checklist

  • Inventory standing privileged assignments and privileged accounts separately.
  • Mark each target JIT-capable or persistent.
  • Make top-tier directory and cloud admin roles eligible, not active.
  • Require phishing-resistant MFA and justification at activation; approval for the highest tier.
  • Vault every persistent privileged account and rotate after checkout.
  • Rotate local administrator passwords per device.
  • Define task-sized roles and short maximum activation durations.
  • Keep two monitored break-glass accounts outside the JIT dependency.
  • Alert on privileged logons that bypass the vault, broker or JIT workflow.
  • Review eligibility, not only active assignments, at each access review.

Standards and references

Related NHI Mgmt Group resources: Privileged Access Management Guide · JIT Access Guide · Cloud PAM and Just in Time Access · PAM Maturity Model · Service Account Security Guide

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Researched and written by the NHI Mgmt Group editorial team using AI tools, under the editorial direction of Lalit Choda. Facts are drawn from the sources listed on this page and checked by our automated quality process. Last updated 13 November 2026. Spotted an error? Use our contact page.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM and Agentic AI security. nhimg.org