---
title: "get a role by id"
method: GET
path: "/api/v1/roles/:id"
tags: ["role"]
---

# get a role by id

`GET /api/v1/roles/:id`

This can only be done by a logged in user who has the required privileges.

## Path parameters

- `id` string, required

## Response `200`

Role data

- Role
  - `name` string
  - `permissions` Permissions[]
  - `scope` string

## Changes

- **2021-08-06** `e366ae458db2` — 1 warning, 1 info
  - removed the optional property `description` from the response with the `200` status
  - added the optional property `scope` to the response with the `200` status
- **2021-08-05** `bf593e163365` — 1 warning, 1 info
  - removed the optional property `scope` from the response with the `200` status
  - added the optional property `description` to the response with the `200` status
- **2019-08-15** `42619b8ccbbe` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/openintegrationhub/apis/iam-api-for-oih/changes/api/v1/roles/:id/get.md)

---

[API](https://skmtc.dev/openintegrationhub/apis/iam-api-for-oih.md) · [All operations](https://skmtc.dev/openintegrationhub/apis/iam-api-for-oih/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/openintegrationhub/iam-api-for-oih/revisions/e366ae458db2/schema)
