Skip to content
Connect an agent
Organisations

Read an organisation's single sign-on settings

The connection to the identity provider (never the client secret), the email domains with the DNS record each needs, the redirect URI to register, and whether the plan has single sign-on.

GET/orgs/{org}/sso

TL;DR

QuestionAnswer
What does it do?Read an organisation's single sign-on settings.
What does it take?org in the path.
What does it return?Status 200 with a body of type SsoSettings.
What can go wrong?401 not signed in; 403 a member or a reader (orgs.forbidden), a plan without single sign-on (plan.sso_not_included), or the request came from an origin that may not make changes; 404 no such organisation, or the caller is not a member of it; 429 too many requests; 503 single sign-on is not set up on this server (sso.unavailable), or organisations are not. Every failure uses the one error envelope.

What it does

The connection to the identity provider (never the client secret), the email domains with the DNS record each needs, the redirect URI to register, and whether the plan has single sign-on. The owner and admins only.

Path parameters

FieldTypeRequiredDescription
orgstringyesThe organisation's id or its slug.

Responses

StatusMeaningBody
200The settings.SsoSettings
401Not signed in.ErrorResponse
403A member or a reader (orgs.forbidden), a plan without single sign-on (plan.sso_not_included), or the request came from an origin that may not make changes.ErrorResponse
404No such organisation, or the caller is not a member of it.ErrorResponse
429Too many requests.ErrorResponse
503Single sign-on is not set up on this server (sso.unavailable), or organisations are not.ErrorResponse

Response body

A 200 answer has the type SsoSettings.

FieldTypeRequiredDescription
availablebooleanyesWhether the organisation's plan has single sign-on (Enterprise).
plan"free" | "pro" | "enterprise"yes
redirectUristringyesThe redirect URI to register at the identity provider.
samlSamlServiceProvideryes
saml.entityIdstringyesOur entity id for this organisation: the audience to set at the provider.
saml.acsUrlstringyesOur assertion consumer service for this organisation: the single sign-on URL to set at the provider.
saml.metadataUrlstringyesOur service provider metadata, for a provider that imports it.
samlAvailablebooleanyesWhether this server can check SAML responses.
connectionSsoConnectionyes
connection.protocol"oidc" | "saml"yesOpenID Connect or SAML 2.0. One connection, one protocol.
connection.issuerstringyesThe OpenID Connect issuer, or the SAML provider's entity id.
connection.clientIdstring | nullyesOpenID Connect only.
connection.secretSetbooleanyesTrue when an OpenID Connect client secret is stored. It is never returned. Always false for SAML.
connection.tokenAuthMethod"client_secret_basic" | "client_secret_post" | nullyes
connection.samlSamlConnectionyesSAML only.
connection.saml.entityIdstringyesThe provider's entity id, which every Issuer must equal.
connection.saml.ssoUrlstringyesThe provider's sign-in service on the redirect binding.
connection.saml.certificatesobject[]yes
connection.saml.emailAttributestring | nullyesThe attribute that carries the address, or null when the name identifier does.
connection.saml.metadataUrlstring | nullyesWhere the metadata was fetched from, or null when it was pasted.
connection.enabledbooleanyes
connection.requireSsobooleanyes
connection.jitbooleanyes
connection.jitRole"member" | "reader"yes
connection.updatedAtintegeryes
domainsSsoDomain[]yes
domains[].idstringyes
domains[].domainstringyes
domains[].verifiedbooleanyes
domains[].verifiedAtinteger | nullyes
domains[].checkedAtinteger | nullyes
domains[].createdAtintegeryes
domains[].recordobjectyes
domains[].record.namestringyes
domains[].record.type"TXT"yes
domains[].record.valuestringyes

See also

DocWhy
API referenceEvery endpoint, and the error envelope
SchemasEvery request and response type
Tool referenceThe operations as callable tools