GET
/
api
/
{organization_id}
/
users
/
{email}
/
roles
List user roles
curl --request GET \
  --url https://api.select.dev/api/{organization_id}/users/{email}/roles \
  --header 'Authorization: Bearer <token>'
{
  "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",
      "is_default": false,
      "granted_from_team_name": "<string>"
    }
  ],
  "remaining_count": 123,
  "limit": 123,
  "offset": 123
}

Authorizations

Authorization
string
header
required

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

Path Parameters

email
string
required

User's email address

organization_id
string
required

Query Parameters

limit
integer
default:100
Required range: 1 <= x <= 1000
offset
integer
default:0
Required range: x >= 0
role
enum<string> | null
Available options:
admin,
editor,
monitor_editor,
viewer
scope_type
enum<string> | null

Types of scopes a role can be assigned to.

Available options:
organization,
snowflake_organization,
snowflake_account,
usage_group
order_by
string | null
default:-created_at

Response

Successful Response

Response model for listing user roles with pagination metadata.