---
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[]
  - `id` string
  - `name` string
  - `permissions` Permissions[]
  - `scope` string
  - `createdAt` string
  - `updatedAt` string
  - `isGlobal` boolean
  - `description` string

## Changes

- **2021-08-09** `214f3986034a` — 2 info
  - added the optional property `items/description` to the response with the `200` status
  - added the optional property `items/isGlobal` to the response with the `200` status
- **2021-08-06** `e3cb40d13d06` — 2 warning, 2 info
  - removed the optional property `items/isCreated` from the response with the `200` status
  - removed the optional property `items/isUpdated` from the response with the `200` status
  - added the optional property `items/createdAt` to the response with the `200` status
  - added the optional property `items/updatedAt` to the response with the `200` status
- **2021-08-06** `3c703fa51ebd` — 3 info
  - added the optional property `items/id` to the response with the `200` status
  - added the optional property `items/isCreated` to the response with the `200` status
  - added the optional property `items/isUpdated` to the response with the `200` status
- **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

[Full 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/016871a170fd/schema)
