---
title: "Fetch a user's roles"
method: GET
path: "/api/v1beta1/users/{username}/roles"
tags: ["users", "rbac"]
---

# Fetch a user's roles

`GET /api/v1beta1/users/{username}/roles`

## Response `200`

User roles details

- object — Pagination info
  - `count` integer, required — Number of items in the current page
  - `next_cursor` string, required — Opaque cursor to access the next page. Can be `null` if there are no more pages
  - `offset` integer — Offset representing the current page
  - `items` Role[]
    - `role` string — The user's role

---

[API](https://skmtc.net/enseadaio/apis/enseada.md) · [All operations](https://skmtc.net/enseadaio/apis/enseada/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/enseadaio/enseada/versions/e8c51f6a5e52/schema)
