# Retrieve administrator permissions

`GET https://api.cademi.com.br/api/v3/administrators/{administrator_id}/permissions`

Operation ID: `administrators.permissions.get` · API v3

Returns the administrator's role, the full set of granular permissions with the state of each one, and the IDs of the products the administrator can access.

Required permissions: `administrators.read`.

## Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `administrator_id` | path | string | yes |  |

## Responses

### 200

Returns the administrator's role and permissions.

Body: `data`: AdministratorPermissions.

Fields of AdministratorPermissions:

| Field | Type | Required | Description |
|---|---|---|---|
| `object` | string, one of `administrator_permissions` | yes |  |
| `permissions` | object | yes | Nested map in the form {permission: {field: boolean}}, with one key per granular permission in the catalog. |
| `product_ids` | array of string | yes |  |
| `revision` | string | yes |  |
| `role` | string, one of `root`, `admin`, `product_admin`, `master_admin`, `support`, `designer` | yes |  |

### 401

The credential is missing, malformed, expired, or revoked.

Body: Error.

### 403

The current credentials do not have the permission required by this operation.

Body: Error.

### 404

The administrator was not found or is not accessible with the current credentials.

Body: Error.

Full schema: https://cademi.dev/openapi/v3.json
