---
title: "Get all role permissions"
method: GET
path: "/api/{org_id}/roles/{role_id}/permissions"
tags: ["Roles"]
---

# Get all role permissions

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

## Request

- Base URL: `https://api.openobserve.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.openobserve.ai/api/{org_id}/roles/{role_id}/permissions`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/openobserve/apis/openobserve-api-http/docs/api/:org_id/roles/:role_id/permissions/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieves all permissions a role has across every resource type in a single request. Replaces issuing one request per resource type. Requires enterprise features to be enabled.

## Path parameters

- `org_id` string, required
- `role_id` string, required

## Response `200`

Success

- object[]

## Other responses

- `400`: Invalid role name
- `500`: Failure

---

[API](https://skmtc.dev/openobserve/apis/openobserve-api-http.md) - [All operations](https://skmtc.dev/openobserve/apis/openobserve-api-http/llms.txt) - [OpenAPI document](https://skmtc.dev/openobserve/apis/openobserve-api-http/revisions/0529b8a10252?raw)
