Ethiack Docs
Organizations

Set an organization's federated-login policy (owner)

PUT
/v1/organizations/{organization_id}/sso/policy

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.

AuthorizationBearer <token>

An API key created in Portal → Settings → API, sent as Authorization: Bearer <key>.

In: header

Path Parameters

organization_id*integer

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": {}
    }
  ]
}