---
title: "Get role"
method: GET
path: "/v1/roles/{role_name}"
tags: ["Security"]
---

# Get role

`GET /v1/roles/{role_name}`

Get a role.

## Path parameters

- `role_name` string, required

## Response `200`

OK

- GetRoleResponse — GetRoleResponse is the response to GetRole.
  - `members` RoleMembership[] — Members assigned to the role.
    - `principal` string — The name of the principal assigned to the role.
  - `role` Role — Role defines a role in the system.
    - `name` string — The name of the role.

## Other responses

- `401` — Unauthenticated.
- `404` — Not Found
- `500` — Internal Server Error. Reach out to support.
- `default` — An unexpected error response.

---

[API](https://skmtc.dev/redpanda-data/apis/redpanda-cloud-data-plane-api.md) · [All operations](https://skmtc.dev/redpanda-data/apis/redpanda-cloud-data-plane-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/redpanda-data/redpanda-cloud-data-plane-api/revisions/7eef0bcc42e7/schema)
