Organizations

Configure the password policy

Replaces the whole policy; any field omitted from the body falls back to its default rather than to its current value. Requires Root or Admin on the meta organization. If the complexity requirements grew, every native user is flagged for a forced password reset and the response reports how many were affected — root, external users and service accounts are never flagged.

put/api/{org_id}/settings/password_policy

Request

Path parameters

org_idstring required

Organization name (must be meta org; caller must be Root or Admin)

Request body

apply_to_rootboolean

Whether root is held to rotation and lockout like every other native user.

Default false, which is the documented exemption: root is the only account that can repair a misconfigured policy, and the only one whose lockout has no remedy from inside the product. Complexity and reuse already apply to root at password-set time whatever this says; the tightening sweep never touches root either way, so root is never mass-flagged.

cookie_max_age_secsinteger

How long a sign-in cookie stays valid, in seconds. 0 defers to ZO_COOKIE_MAX_AGE.

This is the browser's copy of the credential, not a server-side session: shortening it makes the browser stop sending the cookie sooner, and does nothing to a copy taken from it. It applies from the next sign-in — cookies already issued keep the lifetime they were given.

history_countinteger

0 disables reuse prevention.

history_max_retainedinteger

Hashes retained per user; kept at or above history_count so a later increase to history_count has history to check against.

max_lengthinteger

Between min_length and 128; a stored legacy 0 still reads as unbounded.

min_lengthinteger
require_digitboolean
require_lowercaseboolean
require_specialboolean
require_uppercaseboolean
rotation_daysinteger

0 disables rotation enforcement.

rotation_warning_daysinteger

Days before expiry to start warning. 0 = never warn; equal to rotation_days = warn on every request, since no live password is then outside the window.

special_char_setstring

Empty means any non-alphanumeric character counts as special.

Response

Success

users_flaggedinteger required

Changes

No recorded changes to this operation across all 1 revision of this API.