Skip to main content
POST
/
api
/
{organization_id}
/
sso-group-mappings
Create SSO group mapping
curl --request POST \
  --url https://api.select.dev/api/{organization_id}/sso-group-mappings \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "sso_group_name": "<string>",
  "roles": [
    {
      "role": "admin",
      "scope": {
        "type": "organization",
        "id": "<string>"
      }
    }
  ]
}
'
{
  "sso_group_name": "<string>",
  "roles": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "role": "admin",
      "scope": {
        "type": "organization",
        "id": "<string>",
        "name": "<string>"
      },
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z"
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Path Parameters

organization_id
string
required

Body

application/json

The SSO group configuration with initial roles

sso_group_name
string
required

The SSO group name from the identity provider

Minimum string length: 1
roles
PublicRoleCreate · object[]
required

Initial roles to assign to this SSO group

Minimum array length: 1

Response

Successful Response

SSO group information with all its access roles.

sso_group_name
string
required

The SSO group name

roles
PublicSSOGroupAccessRole · object[]
required

All access roles for this SSO group