---
title: "Get a list of roles associated with group."
method: GET
path: "/access/groups/{group_id}/roles"
tags: ["Access Management: Group Operations", "Access Management: Role Operations"]
---

# Get a list of roles associated with group.

`GET /access/groups/{group_id}/roles`

## Request

- Base URL: `https://replace-with-account.api.decodable.co/v1alpha2`
- URL: `https://replace-with-account.api.decodable.co/v1alpha2/access/groups/{group_id}/roles`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/decodable/apis/decodable-control-plane/docs/access/groups/:group_id/roles/get.ts> (a function with typed inputs; its response is checked against the schema)

Requires permission matching: `group:read:<name>`.

Result only includes resources for which the requesting user has permission matching:
`role:read:<name>`, where `name` is the role name.

## Query parameters

- `page_size` integer
- `page_token` string

## Response `200`

A list of roles.

- object
  - `next_page_token` string: A token that, that when passed to a subsequent call as page_token, will return the next page of results.
  - `items` Role[], required: An array of roles.
    - `id` string: An opaque ID, created by Decodable, that uniquely identifies a resource.
    - `name` string, required: The role name.
    - `description` string: The role description.
    - `create_time` string, date-time: The date and time the resource was created.
    - `update_time` string, date-time: The date and time the resource was updated.

## Other responses

- `400`: An invalid request was received.
- `403`: Access denied: requesting user lacks a required permission.
- `default`: An error has occurred.

---

[API](https://skmtc.dev/decodable/apis/decodable-control-plane.md) - [All operations](https://skmtc.dev/decodable/apis/decodable-control-plane/llms.txt) - [OpenAPI document](https://skmtc.dev/decodable/apis/decodable-control-plane/revisions/9718a3019da8?raw)
