Skip to main content
PUT
Set up SSO

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
domains
string[]
required

The e-mail domains whose people sign in through this connection. Each domain belongs to one tenant; public mailboxes (gmail.com and the like) are refused.

Required array length: 1 - 20 elements
protocol
enum<string>
required
Available options:
oidc,
saml
reason
string
required

Why, kept in the tenant's access history.

Required string length: 3 - 1000
default_role
enum<string> | null

For a person in no mapped group; null lets in only people of mapped groups.

Available options:
admin,
security,
integration,
review,
analysis,
vendor
enabled
boolean
default:true
enforced
boolean
default:false

People of the domains sign in only through SSO. A tenant-wide admin keeps the password, as the way in when the provider fails.

groups_attribute
string
default:groups

The claim (OIDC) or attribute (SAML) that carries the groups.

Required string length: 1 - 256
oidc
OidcIn · object | null
require_second_factor
boolean
default:false

Ask for the Niadra authenticator code after the provider, on top of the provider's MFA.

role_mappings
RoleMappingModel · object[]
Maximum array length: 100
saml
SamlIn · object | null

Response

The connection as stored, and what to paste into the identity provider.

connection
SsoConnectionOut · object | null
required

Null while the tenant has no connection.

service_provider
ServiceProviderOut · object
required

What to paste into the identity provider.