Hanzo
OpenapiO11y

Replaces one auth domain's SSO configuration, by id.

Replaces one auth domain's SSO configuration, by id.

PUT /v1/o11y/domains/{id}

Addresshttps://api.hanzo.ai/v1/o11y/domains/{id}
MethodPUT
OperationUpdateAuthDomain
AuthAuthorization: Bearer $HANZO_API_KEY

Replaces one auth domain's SSO configuration, by id. Admin gate.

Request

42 fields, body application/json (required).

FieldInTypeRequiredDescription
idpathstringyes
configbodyo11y.O11yAuthDomainConfig
config.googleAuthConfigbodyo11y.O11yGoogleConfig
config.googleAuthConfig.allowedGroupsbodystring[]AllowedGroups, when set, admits only members of these groups.
config.googleAuthConfig.clientIdbodystringClientID is the OAuth application's id.
config.googleAuthConfig.clientSecretbodystringClientSecret is the OAuth application's secret.
config.googleAuthConfig.domainToAdminEmailbodyobjectDomainToAdminEmail maps each Workspace domain to the admin the service account impersonates; "*" is the fallback.
config.googleAuthConfig.domainToAdminEmail.*bodystring
config.googleAuthConfig.fetchGroupsbodybooleanFetchGroups reads the user's Workspace groups for role mapping.
config.googleAuthConfig.fetchTransitiveGroupMembershipbodybooleanFetchTransitiveGroupMembership also reads groups held through other groups.
config.googleAuthConfig.insecureSkipEmailVerifiedbodybooleanInsecureSkipEmailVerified admits addresses Google has not verified.
config.googleAuthConfig.redirectURIbodystringRedirectURI is the callback the flow returns to.
config.googleAuthConfig.serviceAccountJsonbodystringServiceAccountJSON is the service-account credential used to read groups, when FetchGroups is on.
config.oidcConfigbodyo11y.O11yOIDCConfig
config.oidcConfig.claimMappingbodyo11y.O11yAttributeMapping
config.oidcConfig.claimMapping.emailbodystringEmail is the key carrying the email; defaults to "email".
config.oidcConfig.claimMapping.groupsbodystringGroups is the key carrying the group list; defaults to "groups".
config.oidcConfig.claimMapping.namebodystringName is the key carrying the display name; defaults to "name".
config.oidcConfig.claimMapping.rolebodystringRole is the key carrying the role; defaults to "role".
config.oidcConfig.clientIdbodystringClientID is the OAuth application's id.
config.oidcConfig.clientSecretbodystringClientSecret is the OAuth application's secret.
config.oidcConfig.getUserInfobodybooleanGetUserInfo also queries the userinfo endpoint, for providers whose id tokens are thin.
config.oidcConfig.insecureSkipEmailVerifiedbodybooleanInsecureSkipEmailVerified admits addresses the provider has not verified.
config.oidcConfig.issuerbodystringIssuer is the provider's issuer URL.
config.oidcConfig.issuerAliasbodystringIssuerAlias overrides the issuer for providers whose discovery document disagrees with their issuer URL.
config.roleMappingbodyo11y.O11yRoleMapping
config.roleMapping.defaultRolebodystringDefaultRole is the role when no group mapping applies.
config.roleMapping.groupMappingsbodyobjectGroupMappings maps a provider group name to a role name.
config.roleMapping.groupMappings.*bodystring
config.roleMapping.useRoleAttributebodybooleanUseRoleAttribute reads the role straight from the provider's role claim instead of the group mappings.
config.samlConfigbodyo11y.O11ySAMLConfig
config.samlConfig.attributeMappingbodyo11y.O11yAttributeMapping
config.samlConfig.attributeMapping.emailbodystringEmail is the key carrying the email; defaults to "email".
config.samlConfig.attributeMapping.groupsbodystringGroups is the key carrying the group list; defaults to "groups".
config.samlConfig.attributeMapping.namebodystringName is the key carrying the display name; defaults to "name".
config.samlConfig.attributeMapping.rolebodystringRole is the key carrying the role; defaults to "role".
config.samlConfig.insecureSkipAuthNRequestsSignedbodybooleanInsecureSkipAuthNRequestsSigned skips signing outgoing AuthN requests, for IdPs that refuse signed ones.
config.samlConfig.samlCertbodystringSamlCert is the IdP's signing certificate.
config.samlConfig.samlEntitybodystringSamlEntity is the IdP's entityID.
config.samlConfig.samlIdpbodystringSamlIdp is the IdP's single-sign-on endpoint.
config.ssoEnabledbodybooleanSSOEnabled turns enforced SSO on for the domain.
config.ssoTypebodystringSSOType picks the provider — saml, google_auth or oidc.

Response

StatusBodyMeaning
204no content

Failure carries the platform error shape — see Errors.

Examples

hanzo o11y domains set <id>

O11y API · All Hanzo APIs · Interactive reference

How is this guide?

On this page