---
title: "Get user roles"
method: GET
path: "/v2/users/{userId}/roles"
tags: ["Users"]
---

# Get user roles

`GET /v2/users/{userId}/roles`

This endpoint gets user roles.

## Response `200`

OK

- RolesConfig — User's roles and associated metadata
  - `roles` RoleConfig[], required
    - `roleType` 'COMPANY_ADMIN' | 'COMPANY_TRAVEL_ARRANGER' | 'TRAVEL_ARRANGER' | 'COMPANY_REPORT_ADMIN' | 'TMC_ADMIN' | 'TMC_AGENT' | 'GLOBAL_ADMIN' | 'GLOBAL_AGENT'
    - `roleMetadata` RoleMeta
      - `travelArrangerMetadata` TravelArrangerMetadata
        - `arrangerFor` TravelerConfigForArranger[], required
          - `userId` string, uuid
          - `sendConfirmationEmail` boolean — Whether or not to send confirmation emails to user.
          - `sendFlightStatsNotificationEmail` boolean — Whether or not to send flight stat notifications to user.
    - `metadata` union
      - object
        - `roleType` string, required — Discriminator property for role metadata.
        - `arrangerFor` TravelerConfigForArranger[], required
          - `userId` string, uuid
          - `sendConfirmationEmail` boolean — Whether or not to send confirmation emails to user.
          - `sendFlightStatsNotificationEmail` boolean — Whether or not to send flight stat notifications to user.
      - object
        - `companyRef` Reference, required — Reference of an entity
          - `id` string, uuid, required
          - `name` string
        - `tmcRef` Reference — Reference of an entity
          - `id` string, uuid, required
          - `name` string
        - `roleType` string, required — Role type for which company reference metadata is specified.
      - object
        - `tmcRef` Reference, required — Reference of an entity
          - `id` string, uuid, required
          - `name` string
        - `roleType` string, required — Role type for which tmc reference metadata is specified.

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — The specified resource was not found.

---

[API](https://skmtc.net/spotnana/apis/user-management-api.md) · [All operations](https://skmtc.net/spotnana/apis/user-management-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/spotnana/user-management-api/versions/920fb84cbf70/schema)
