Skip to main content
Manages the organization’s single sign-on connection to a SAML 2.0 or OIDC identity provider. An organization has at most one connection. Get the URLs to register at the identity provider from the sazabi_sso_service_provider data source. Terraform cannot run the connection test, because it needs a person to sign in at the identity provider. tested_at stays null until someone runs the test from the dashboard, and changing the issuer, client ID, client secret, SSO URL, certificates or metadata URL clears it again. Settings changes (default_role, jit_enabled, scim_only, max_session_age_seconds, disabled) keep it. Changing protocol replaces the connection. Destroying the resource deletes the connection and ends the sessions of everyone who signed in through it; the API refuses while a domain enforces SSO. Enforcement is not managed by Terraform. The API key needs permission to manage SSO (can_manage_sso). A key without it can read the connection but not create, change or delete it.

Example

Arguments

The API returns only certificate fingerprints, so a certificate changed outside Terraform shows as a difference, and applying sends the configured certificates. The API never returns the client secret; the secret is sent when the connection is created and when oidc_client_secret_version changes. Creating a connection when the organization already has one fails; import it instead. If someone else creates one while Terraform is creating its own, the apply fails and the configuration has already been written to their connection, so review it before importing.

Import

- imports the API key’s own organization. After import, the first apply sends the configured certificates (SAML), or the client secret when oidc_client_secret_version is set (OIDC).