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.
- Optional: set template limits under Rules & templates → Templates → pencil icon (Edit template): Longest temporary access, Suggested expiry → Update.
- Open Rules & templates → Create → Give access.
- Pick the person under People, the template under Permissions and the target under Targets if needed.
- Open Expires, change Ends from Never to 1 hour, 4 hours, 8 hours, 24 hours, 7 days or Pick a date (max 30 days).
- 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#
- Create with
expires_atvia POST/policies, orttl(PT8H) via POST/grants. - Change expiry via PUT
/policieswith only/{id} expires_atandversion(rules without expiry return400 policy.ttl_not_allowed).