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-policyParameters
| Name | Location | Type | Required |
|---|---|---|---|
organization_id | path | string | Yes |
Request body
application/json · UpdateLoginPolicy
| Field | Type | Required |
|---|---|---|
expected_versionThe version the caller read. A concurrent change fails with a conflict. | integer (int64) | Yes |
guest_roleExplicit custom membership role whose invited, locally managed members may use passwords during enforced SSO. | string | null | No |
local_login | LocalLoginPolicy | Yes |
require_mfa | boolean | Yes |
Responses
| Status | Description | Body |
|---|---|---|
200 | OK | OrganizationLoginPolicy application/json |
400 | Invalid request | ErrorBody application/json |
401 | Authentication required | ErrorBody application/json |
403 | Forbidden | ErrorBody application/json |
404 | Not found | ErrorBody application/json |
409 | Conflict | ErrorBody application/json |
413 | Request too large | ErrorBody application/json |
415 | JSON content type required | ErrorBody application/json |
500 | Internal error | ErrorBody application/json |
501 | Unsupported capability | ErrorBody application/json |
503 | Provider unavailable or request timed out | ErrorBody application/json |