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.
federationSsoFederationyesPlotwork's issuer for this organisation, or null when this server cannot sign assertions.
federation.issuerstringyesPlotwork's issuer for this organisation: the federated credential's Issuer.
federation.subjectstringyesThe federated credential's Subject identifier: the organisation's id.
federation.audience"api://AzureADTokenExchange"yesThe federated credential's Audience.
federation.jwksUristringyesWhere the public keys are published, for a provider that fetches them.
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.credential"client_secret" | "federated" | "private_key_jwt" | nullyesWhat the connection proves itself with at the token endpoint: a client secret, a Microsoft Entra ID federated credential, or a private key JWT. OpenID Connect only.
connection.secretSetbooleanyesTrue when an OpenID Connect client secret is stored. It is never returned. False for the other credentials and for SAML.
connection.tokenAuthMethod"client_secret_basic" | "client_secret_post" | "private_key_jwt" | nullyes
connection.signingKeySsoSigningKeyyesThe connection's signing key, for federated and private_key_jwt; null otherwise.
connection.signingKey.kidstringyes
connection.signingKey.createdAtintegeryesWhen the key was made: the last rotation, or when the credential was chosen. Milliseconds since the epoch.
connection.signingKey.publicJwkSsoPublicJwkyes
connection.signingKey.publicKeyPemstringyesThe same public key as a PEM PUBLIC KEY, for a provider that takes a pasted key.
connection.signingKey.previousKidstring | nullyesThe key a rotation replaced, while it is still published (a day), or null.
connection.signingKey.previousExpiresAtinteger | nullyesWhen the previous key leaves the JWKS, or null.
connection.warnings"private_key_jwt_not_listed"[]yesWhat the save noticed but did not refuse: private_key_jwt_not_listed when the provider's discovery document does not list private_key_jwt. Empty when read.
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
agentsOrgOnlybooleanyes"Agents connect to this organisation": members on a verified domain connect agents only to the organisation.

See also

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