---
title: "Get all roles"
method: GET
path: "/api/roles"
tags: ["Role Management"]
---

# Get all roles

`GET /api/roles`

## Query parameters

- `searchKeyword` string
- `pageSize` integer
- `pageNumber` integer
- `orderBy` string[]

## Response `200`

OK

- RoleModelPaginationResult — Class representing the page results.
  - `items` RoleModel[], nullable — The current page items.
    - `id` string, nullable
    - `name` string, nullable
    - `color` string, nullable
    - `description` string, nullable
  - `totalItems` integer — The total number of items.
  - `nextPage` string, nullable — The query next page Url.

---

[API](https://skmtc.net/cgi-fr/apis/azure-iot-hub-portal-api.md) · [All operations](https://skmtc.net/cgi-fr/apis/azure-iot-hub-portal-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cgi-fr/azure-iot-hub-portal-api/revisions/8f5ec4f45de1/schema)
