---
title: "Get role assignments."
method: GET
path: "/access-control/roles/{roleUID}/assignments"
tags: ["access_control", "enterprise"]
---

# Get role assignments.

`GET /access-control/roles/{roleUID}/assignments`

## Request

- Base URL: `/api` (relative, and the document’s source URL is not known)
- URL: `/api/access-control/roles/{roleUID}/assignments`
- Auth: one of:
  - HTTP basic
  - API key in header `Authorization`

Get role assignments for the role with the given UID.
Does not include role assignments mapped through group attribute sync.

You need to have a permission with action `teams.roles:list` and scope `teams:id:*` and `users.roles:list` and scope `users:id:*`.

## Path parameters

- `roleUID` string, required

## Response `200`

(empty)

- RoleAssignmentsDTO
  - `role_uid` string
  - `service_accounts` integer[]
  - `teams` integer[]
  - `users` integer[]

## Other responses

- `403`: ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.
- `404`: NotFoundError is returned when the requested resource was not found.
- `500`: InternalServerError is a general error indicating something went wrong internally.

---

[API](https://skmtc.dev/grafana/apis/grafana-http-api.md) - [All operations](https://skmtc.dev/grafana/apis/grafana-http-api/llms.txt) - [OpenAPI document](https://skmtc.dev/grafana/apis/grafana-http-api/revisions/df55ba1718ba?raw)
