---
title: "Get User Roles"
method: GET
path: "/business/v2/employees/{userId}/roles"
tags: ["User Roles"]
---

# Get User Roles

`GET /business/v2/employees/{userId}/roles`

## Request

- Base URL: `https://api.soldo.com`
- URL: `https://api.soldo.com/business/v2/employees/{userId}/roles`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://api.soldo.com/oauth/authorize` scopes: `employee_read`

Endpoint to retrieve roles by `User` ID.

## Path parameters

- `userId` string, required: The `User` ID.

## Response `200`

The result is the `User` with their `Roles`.

- AssignedUserRoles
  - `id` string: The `User` ID.
  - `roles` UserRole[]: The list of `UserRole` of the `User`.
    - `id` string: The ID of the `UserRole`.
    - `name` string: The name of the `UserRole`.
    - `description` string: The description of the `UserRole`.
    - `scope` string: The scope of the `UserRole`.

## Other responses

- `404`: One or more resource requested does not exist.

---

[API](https://skmtc.dev/soldo/apis/soldo-business-api-v2-0.md) - [All operations](https://skmtc.dev/soldo/apis/soldo-business-api-v2-0/llms.txt) - [OpenAPI document](https://skmtc.dev/soldo/apis/soldo-business-api-v2-0/revisions/23fc5d07b367?raw)
