---
title: "List permissions for a role"
method: GET
path: "/api/v2/roles/{role_id}/permissions"
tags: ["Roles"]
---

# List permissions for a role

`GET /api/v2/roles/{role_id}/permissions`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/roles/{role_id}/permissions`
- Auth: one of:
  - API key in header `DD-API-KEY` and API key in header `DD-APPLICATION-KEY`
  - OAuth 2
    - Authorization code: `/oauth2/v1/authorize`
    - Token URL: `/oauth2/v1/token` scopes: `user_access_read`

Returns a list of all permissions for a single role.

## Path parameters

- `role_id` string, required

## Response `200`

OK

- PermissionsResponse: Payload with API-returned permissions.
  - `data` Permission[]: Array of permissions.
    - `attributes` PermissionAttributes: Attributes of a permission.
      - `created` string, date-time: Creation time of the permission.
      - `description` string: Description of the permission.
      - `display_name` string: Displayed name for the permission.
      - `display_type` string: Display type.
      - `group_name` string: Name of the permission group.
      - `name` string: Name of the permission.
      - `name_aliases` string[]: List of alias names for the permission.
      - `restricted` boolean: Whether or not the permission is restricted.
    - `id` string: ID of the permission.
    - `type` 'permissions', required: Permissions resource type.

## Other responses

- `403`: Authentication error
- `404`: Not found
- `429`: Too many requests

---

[API](https://skmtc.dev/datadog/apis/datadog-api-v2-collection.md) - [All operations](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/llms.txt) - [OpenAPI document](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/revisions/da68bf029e4c?raw)
