List the roles the organization's SSO sign-ins may arrive with
/api/v1/organizations/{id}/sso-connection/arrival-rolesThe roles a sign-in through the organization's connection may join with, for choosing its default_role_id. When the developer has set the organization's directory grantable roles, the list is those roles and is_default marks the arrival role among them; otherwise the Environment's identity-provider arrival roles (idp_arrival_roles in its auth settings), which every organization without a list of its own inherits; with neither, the Environment's active custom roles with nothing marked. administers_organization marks a role carrying canopy:organization.manage: everyone arriving with it administers the organization. An organization administrator (identity token) may only bind a role from this list; the developer's key is not bound by it. Requires hierarchy.view or canopy:organization.manage at the organization. The response is an unpaginated { items } array.
Authentication
Authorization Option A JWT access token. Never send alongside X-API-Key: a request carrying both is refused.
X-API-Key Option B API key for management-tier access. Never send alongside an Authorization header: a request carrying both is refused.
Path Parameters
idstring Required Responses
application/json
items *OrganizationSsoArrivalRoleDto[]
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
Returned object
curl -X GET "https://auth.canopy-io.com/api/v1/organizations/value/sso-connection/arrival-roles" \ -H "X-API-Key: $CANOPY_API_KEY"
{ "items": [ { "id": "string", "name": "string", "description": "string", "administers_organization": false, "is_default": false } ] }
Tell us how we can improve this guide.