---
title: "Retrieves a user role by provided role ID"
method: GET
path: "/role/{id}"
tags: ["User Role(Group)"]
---

# Retrieves a user role by provided role ID

`GET /role/{id}`

## Path parameters

- `id` integer, required

## Response `200`

User Role has been successfully retrieved

- UserRoleResource
  - `groupId` integer
  - `name` string
  - `description` string
  - `icon` string
  - `components` ComponentResource[]
    - `componentId` integer
    - `name` string
    - `permissions` string[]

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `500` — Internal Error
- `502` — Bad Gateway

---

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