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

# get all roles

`GET /api/v1/roles`

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

## Response `200`

List all roles

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

## Changes

- **2021-08-06** `e366ae458db2` — 1 warning, 1 info
  - removed the optional property `items/description` from the response with the `200` status
  - added the optional property `items/scope` to the response with the `200` status
- **2021-08-05** `bf593e163365` — 1 warning, 1 info
  - removed the optional property `items/scope` from the response with the `200` status
  - added the optional property `items/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/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)
