Skip to main content
PATCH
Require or stop requiring SSO
Switches SSO enforcement. On Cloud, enabling needs the Scale plan. Members flagged ssoExempt through Members can still sign in another way, which keeps a break-glass path. Turning enforcement on needs an active connection and a verified domain (and, on Cloud, the Scale plan). Turning it off is never gated. Members flagged ssoExempt keep signing in with a password.
Availability: Cloud · Enterprise (self-hosted). Not available on the Community edition: a self-hosted deployment needs ENTERPRISE_ENABLED=true, otherwise the endpoint answers 403 with error.type: "enterprise_license_required".

Authorizations

Authorization
string
header
required

A workspace API key (oc_…) or organization API key (oc_org_…). Workspace-scoped endpoints called with an organization key also need X-Workspace-Id.

Body

application/json
ssoRequired
boolean
required

Response

The state

ssoRequired
boolean
hasActiveConnection
boolean
hasVerifiedDomain
boolean
canRequire
boolean

Both preconditions hold, so enforcement may be switched on.

exemptMemberCount
integer

Break-glass members. Keep it above zero.