Set an organization's federated-login policy (owner)
Set whether federated login is served and whether it is mandatory.
The body is total, so this replaces the policy rather than patching it. The write interlocks are pre-flighted by the service and answer 400: enabling a connection no admin has pointed anywhere, and mandating SSO on one that is not served -- the latter an organization-wide lockout, because members of an SSO-mandated organization hold no password.
Arming with unlinked members answers 409; link them first.
An API key created in Portal → Settings → API, sent as Authorization: Bearer <key>.
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X PUT "https://api.ethiack.com/v1/organizations/0/sso/policy" \ -H "Content-Type: application/json" \ -d '{ "enabled": true, "require_sso": true }'{
"login_slug": "string",
"zitadel_idp_id": "string",
"enabled": true,
"require_sso": true,
"provision_on_first_login": true,
"provisioned_role": "owner",
"verified_at": "2019-08-24T14:15:22Z",
"protocol": "saml",
"acs_url": "string",
"sp_metadata_url": "string",
"certificate_url": "string",
"slo_url": "string"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}Replace your federated-login IdP configuration (owner) PUT
Update the owner's template in place -- new metadata, rotated secret. The template id is preserved, so the customer's ACS URL stays valid. Deliberately **not** entitlement-gated: this repairs an existing, possibly SSO-mandated login path, and members of an SSO-mandated organization hold no password. Gating repair on a lapsed plan would turn a billing gap into a lockout. The paywall is on `establish`, where the connection is created.
Arm or disarm just-in-time provisioning (owner) PUT
Arm or disarm minting accounts on a first federated login.