---
title: "List users assigned to a role"
method: GET
path: "/api/v3/roles/{role_id}/users"
tags: ["Roles"]
---

# List users assigned to a role

`GET /api/v3/roles/{role_id}/users`

## Request

- Base URL: `https://embedded.improvado.io`
- URL: `https://embedded.improvado.io/api/v3/roles/{role_id}/users`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/improvado/apis/improvado-embedded-api-v3/docs/api/v3/roles/:role_id/users/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns the users currently holding the role, with their workspace assignment.
Useful for impact preview before editing or deleting the role.

## Path parameters

- `role_id` integer, required

## Response `200`

Users assigned to the role.

- RoleUsersResponse
  - `users` RoleUser[], required
    - `user_id` integer, required
    - `name` string, required: Display name. Falls back to email if first/last name are blank.
    - `email` string, required
    - `workspace_id` integer, required
    - `workspace_title` string, required

## Other responses

- `404`: Role not found.

---

[API](https://skmtc.dev/improvado/apis/improvado-embedded-api-v3.md) - [All operations](https://skmtc.dev/improvado/apis/improvado-embedded-api-v3/llms.txt) - [OpenAPI document](https://skmtc.dev/improvado/apis/improvado-embedded-api-v3/revisions/a881099bd6c4?raw)
