Open Enterprise
Browse topics
API referenceOrganizations

Changes whether members sign in with local accounts and whether local logins need two-step verification. Sessions that no longer meet the policy stop working at once.

PUT/v1/organizations/{organization_id}/login-policy

Parameters

NameLocationTypeRequired
organization_idpathstringYes

Request body

application/json · UpdateLoginPolicy

FieldTypeRequired
expected_version

The version the caller read. A concurrent change fails with a conflict.

integer (int64)Yes
guest_role

Explicit custom membership role whose invited, locally managed members may use passwords during enforced SSO.

string | nullNo
local_loginLocalLoginPolicyYes
require_mfabooleanYes

Responses

StatusDescriptionBody
200OKOrganizationLoginPolicy application/json
400Invalid requestErrorBody application/json
401Authentication requiredErrorBody application/json
403ForbiddenErrorBody application/json
404Not foundErrorBody application/json
409ConflictErrorBody application/json
413Request too largeErrorBody application/json
415JSON content type requiredErrorBody application/json
500Internal errorErrorBody application/json
501Unsupported capabilityErrorBody application/json
503Provider unavailable or request timed outErrorBody application/json

Search documentation