# Get user roles This endpoint gets user roles. Endpoint: GET /v2/users/{userId}/roles Version: v2 Security: Bearer ## Path parameters: - `userId` (string, required) Identifier for user. Example: "4974a66b-7493-4f41-908c-58ba81093947" ## Response 200 fields (application/json): - `roles` (array, required) - `roles.roleType` (string) Enum: "COMPANY_ADMIN", "COMPANY_TRAVEL_ARRANGER", "TRAVEL_ARRANGER", "COMPANY_REPORT_ADMIN", "TMC_ADMIN", "TMC_AGENT", "GLOBAL_ADMIN", "GLOBAL_AGENT" - `roles.metadata` (any) - `roles.roleMetadata` (object) - `roles.roleMetadata.travelArrangerMetadata` (object) - `roles.roleMetadata.travelArrangerMetadata.arrangerFor` (array, required) - `roles.roleMetadata.travelArrangerMetadata.arrangerFor.userId` (string) - `roles.roleMetadata.travelArrangerMetadata.arrangerFor.sendConfirmationEmail` (boolean) Whether or not to send confirmation emails to user. - `roles.roleMetadata.travelArrangerMetadata.arrangerFor.sendFlightStatsNotificationEmail` (boolean) Whether or not to send flight stat notifications to user. ## Response 401 fields (application/json): - `debugIdentifier` (string) Link to debug the error internally. - `errorMessages` (array) - `errorMessages.errorCode` (string) Error code to identify the specific errors. - `errorMessages.message` (string) Message containing details of error. - `errorMessages.errorParameters` (array) Error message parameters. - `errorMessages.errorParameters.name` (string) Parameter name - `errorMessages.errorParameters.value` (string) Parameter value - `errorMessages.errorDetail` (string) More details about the error. ## Response 403 fields (application/json): - `debugIdentifier` (string) Link to debug the error internally. - `errorMessages` (array) - `errorMessages.errorCode` (string) Error code to identify the specific errors. - `errorMessages.message` (string) Message containing details of error. - `errorMessages.errorParameters` (array) Error message parameters. - `errorMessages.errorParameters.name` (string) Parameter name - `errorMessages.errorParameters.value` (string) Parameter value - `errorMessages.errorDetail` (string) More details about the error. ## Response 404 fields (application/json): - `debugIdentifier` (string) Link to debug the error internally. - `errorMessages` (array) - `errorMessages.errorCode` (string) Error code to identify the specific errors. - `errorMessages.message` (string) Message containing details of error. - `errorMessages.errorParameters` (array) Error message parameters. - `errorMessages.errorParameters.name` (string) Parameter name - `errorMessages.errorParameters.value` (string) Parameter value - `errorMessages.errorDetail` (string) More details about the error.