Docs
Live demo
GET/api/v2/organizations/{id}/policy
security:readAPI token

Return the organization's security policy overrides together with the installation values they inherit. A null override means the organization follows the installation.

Parameters

Path1 required of 1
idstringpathrequired

Organization ID (UUID)

Responses

200

OK

OrganizationPolicyResponse · 19 fields
forgot_password_enabledbooleanrequired

False when the organization turned the form off. Null inherits the installation.

can be null
installationOrganizationPolicyInstallationrequired

Installation values an organization inherits and may only tighten.

8 fields
forgot_password_enabledbooleanrequired

True when the installation offers the forgot-password form to Principal users.

mfa_enabledbooleanrequired

True when the installation offers second factors.

mfa_reauth_window_secondsintegerrequired
password_min_lengthintegerrequired
session_idle_timeout_secondsintegerrequired
session_max_lifetime_secondsintegerrequired
credentials_read_limit_per_hourintegerrequired

Hourly reveal limit per caller that an organization without an override uses.

api_tokensAPITokenPolicyResponserequired

Installation defaults of the API token settings.

6 fields
default_lifetime_daysintegerrequired

Lifetime the console offers for a new token.

max_lifetime_daysintegerrequired

Longest lifetime of a new token or a replaced secret.

security_max_lifetime_daysintegerrequired

Longest lifetime of a token issued with allow_security_changes. Never more than max_lifetime_days.

networks_requiredbooleanrequired

A new token must name the networks it is accepted from.

unused_disable_daysintegerrequired

Days without use after which the periodic check disables a token. 0 turns the check off.

cap_existingbooleanrequired

The longest lifetime also applies to tokens issued before it was set.

Range every numeric setting accepts under this installation, in the setting's unit: characters, days or seconds. A save rejects a changed value outside its range.

8 fields
mfa_reauth_window_secondsOrganizationPolicyRangerequired

Inclusive range of a numeric setting.

2 fields
maxintegerrequired
minintegerrequired
password_max_age_daysOrganizationPolicyRangerequired

Inclusive range of a numeric setting.

2 fields
maxintegerrequired
minintegerrequired
password_min_lengthOrganizationPolicyRangerequired

Inclusive range of a numeric setting.

2 fields
maxintegerrequired
minintegerrequired
session_idle_timeout_secondsOrganizationPolicyRangerequired

Inclusive range of a numeric setting.

2 fields
maxintegerrequired
minintegerrequired
session_max_lifetime_secondsOrganizationPolicyRangerequired

Inclusive range of a numeric setting.

2 fields
maxintegerrequired
minintegerrequired
credentials_read_limit_per_hourOrganizationPolicyRangerequired

Inclusive range of a numeric setting.

2 fields
maxintegerrequired
minintegerrequired
api_token_lifetime_daysOrganizationPolicyRangerequired

Inclusive range of a numeric setting.

2 fields
maxintegerrequired
minintegerrequired
api_token_unused_disable_daysOrganizationPolicyRangerequired

Inclusive range of a numeric setting.

2 fields
maxintegerrequired
minintegerrequired
mfa_reauth_window_secondsintegerrequired
can be null
mfa_requiredbooleanrequired
mfa_required_for_selectedbooleanrequired

The organization requires a second factor from the marked people and from its administrators.

organization_idstringrequired
password_max_age_daysintegerrequired
can be null
password_min_lengthintegerrequired
can be null
password_sign_in_enabledbooleanrequired

False when the organization allows SSO only. Null inherits the installation.

can be null
session_idle_timeout_secondsintegerrequired
can be null
session_max_lifetime_secondsintegerrequired
can be null
credentials_read_limit_per_hourintegerrequired

Organization override of the hourly reveal limit per caller. Null inherits.

can be null
credentials_show_oncebooleanrequired

True when a stored secret is shown once after it is issued.

members_link_sign_in_methodsbooleanrequired

True when members add sign-in methods to themselves in Account security.

suspend_people_connector_losesbooleanrequired

True when a connector suspends a person it no longer finds and who has no other source.

api_tokensAPITokenPolicySettingsrequired

Stored API token settings of the organization. Null means the installation default.

6 fields
default_lifetime_daysintegerrequired
can be null
max_lifetime_daysintegerrequired
can be null
security_max_lifetime_daysintegerrequired
can be null
networks_requiredbooleanrequired
unused_disable_daysintegerrequired
can be null
cap_existingbooleanrequired
revisioninteger · int64required

Policy revision. Every save increments it. A save names the revision it was read at.

min 1
updated_atstringrequired

Common errors: 400 401 403 404 429 504. They mean the same for every operation, see Errors.

↑ ↓ to moveEnter to openEsc to close