> For the complete documentation index, see [llms.txt](https://docs.p0.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.p0.dev/p0-management/organization-access-duration-settings.md).

# Organization access duration settings

Set the organization-wide duration limits for access requests in P0: expiry presets, approvable duration, maximum access duration, and maximum standing access duration.

Access duration settings control how long access lasts and how long requests stay open across your whole organization. You set them in the [P0 app](https://p0.app) under **P0 Management** > **Access management**. Only **Owners** can change them.

These settings apply organization-wide and act as the outer bounds for every access request, regardless of which resource or policy it targets.

<figure><img src="https://3783273641-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSQNwGQz62W737pY0FzVb%2Fuploads%2Fgit-blob-c4ed80f5150816e28b44b44576bfda5665905382%2Forganization-access-duration-settings.png?alt=media" alt="P0 Management Access management page showing the expiry options list, approvable duration, organization maximum access duration, and organization maximum standing access duration settings" width="563"><figcaption></figcaption></figure>

## Expiry options

Expiry options are the preset durations that appear in the access request and approval screens, so requestors and approvers can pick a duration with one click instead of typing one. The defaults are:

* 5 minutes
* 1 hour
* 1 day
* 1 week
* 30 days

Add your own presets, remove ones you don't want, or reset the list to the defaults. Approvers can always enter a custom time manually, whether or not it matches a preset.

## Approvable duration

The approvable duration is the window in which a request must be approved. A request that no one approves within this window is automatically denied, so stale requests don't linger. The default is **14 days**.

## Organization maximum access duration

The organization maximum access duration is the longest any single access grant can last. The default is **180 days**.

When someone requests access for longer than this maximum, P0 caps the request at the maximum and creates it, rather than rejecting it.

## Organization maximum standing access duration

The organization maximum standing access duration is the longest that standing access can last — access granted without a human approving each request, through **always-allow** rules and **auto-approve (on-call)** rules. The default is **24 hours**.

This value also can't exceed the organization maximum access duration. If you set it higher, it is still effectively enforced as no greater than the organization maximum access duration.

{% hint style="info" %}
You can't lower the organization maximum access duration or the organization maximum standing access duration below a maximum duration that an existing policy already grants. If a policy's approval rule would no longer fit, P0 blocks the change and names the policy and rule to update first.
{% endhint %}

## Set these durations as code

You can manage these settings with the [P0 Terraform provider](https://registry.terraform.io/providers/p0-security/p0/latest/docs) (version `0.50.0` or later):

* [`p0_access_durations`](https://registry.terraform.io/providers/p0-security/p0/latest/docs/resources/access_durations) sets the approvable, maximum access, and maximum standing access durations.
* [`p0_expiry_options`](https://registry.terraform.io/providers/p0-security/p0/latest/docs/resources/expiry_options) defines the expiry presets.

To configure them over the API, see the [Just-in-time settings API](https://docs.p0.dev/p0-management/management-api/just-in-time-settings-api.md).
