---
title: "Get Role Permissions"
method: GET
path: "/openapi/v2.0/organizations/{uuid}/roles/permissions"
tags: ["Organization & Project/Members & Permissions Management/Roles & Permissions"]
---

# Get Role Permissions

`GET /openapi/v2.0/organizations/{uuid}/roles/permissions`

## Request

- Base URL: `` (relative, and it does not resolve against the document’s source URL)
- URL: `/openapi/v2.0/organizations/{uuid}/roles/permissions`
- Auth: none required

Get the initialized permission tree plus the permission list bound to the specified role, used to directly render the permission checkbox tree on the role editing page

## Path parameters

- `uuid` string, uuid, required

## Query parameters

- `role_id` string[]
- `type` string, required

## Headers

- `X-User-Token` string, required
- `X-Request-Id` string
- `X-Language` string

## Response `200`

Business success (see 'Response Example' in the Markdown documentation for specific data)

- object
  - `code` integer: Non-zero Indicates Exception
  - `message` string: Message Prompt
  - `data` object: Permission Tree Bound to Current Role
    - `init_permissions` object[]: Top-Level Node of Permission Tree
      - `permission_id` string: Permission ID (business string, e.g., manage-project / device-control)
      - `permission_name` string: Permission Display Name (i18n)
      - `permission_description` string: Permission Description
      - `level` integer: Permission Level
      - `is_visible` boolean: Whether Frontend Should Display This Item
      - `is_basic_permission` boolean: Whether Basic Permission
      - `path` string: Permission Path (dot/slash-delimited hierarchy)
      - `permission_type` string: Ownership: project / organization
      - `sequence` integer: Sort Order Index
      - `predecessor` string[], nullable: Prerequisite Permission ID List; these are required to hold this permission
      - `frontend_resources` string[], nullable: Frontend Resource Identifier List
      - `resources` string[], nullable: Backend Resource List
      - `extended_resources` string[], nullable: Extended Resource List
      - `related_permissions` string[], nullable: Related Permission List
      - `created_at` string, date-time: Permission Created At
      - `updated_at` string, date-time: Permission Updated At
      - `deleted_at` string, date-time, nullable: Permission deletion time; null if not deleted
      - `children` object[]: Sub-Permissions

## Other responses

- `401`: Login expired or Authorization not provided
- `403`: Account does not have permission to access this resource
- `500`: Service temporarily unavailable, please retry later

---

[API](https://skmtc.dev/dji/apis/flighthub-2-openapi-v2-0-public-cloud.md) - [All operations](https://skmtc.dev/dji/apis/flighthub-2-openapi-v2-0-public-cloud/llms.txt) - [OpenAPI document](https://skmtc.dev/dji/apis/flighthub-2-openapi-v2-0-public-cloud/revisions/aeef0010be34?raw)
