Docs
Live demo

Give temporary access

Grant time-boxed access to a person or service account, adjust expiry while active and auto-revoke on end.

On this page

Before you start: the admin role, a managed target and a template. Works for people and service accounts (not groups or adopted accounts) using a separate account such as user.jit.2bf5.

  1. Optional: set template limits under Rules & templates → Templates → pencil icon (Edit template): Longest temporary access, Suggested expiry → Update.
  2. Open Rules & templates → Create → Give access.
  3. Pick the person under People, the template under Permissions and the target under Targets if needed.
  4. Open Expires, change Ends from Never to 1 hour, 4 hours, 8 hours, 24 hours, 7 days or Pick a date (max 30 days).
  5. Click Create and apply.

The rule shows Temporary · 8 h left (also on Your access). Filter all temporary rules with View → Temporary.

Extend or end early#

Open the rule, click Change expiry under Temporary access, pick the new end (1 min to 30 days, within template limit) and click Save.

Engine or state Behavior
PostgreSQL, ClickHouse
Auto-applies the new end (needs apply permission) and logs in History.
Kubernetes
User clicks Rotate kubeconfig for a token lasting to the new end.
Unapplied rule
Saves new end without apply.
Ended
Shows Ended · removing access, removes rule and temporary account, keeps usual account. To end early, revoke it.

Failed removals retry after 1 min, then every 5 min, and flag Needs attention in Installation health after 2 min. Access expiring alerts fire only when created or extended >15 min before expiry.

Through the API#

  1. Create with expires_at via POST /policies, or ttl (PT8H) via POST /grants.
  2. Change expiry via PUT /policies/{id} with only expires_at and version (rules without expiry return 400 policy.ttl_not_allowed).
↑ ↓ to moveEnter to openEsc to close