# Konsole: panel-access

Quelle: https://docs.neode.sk/de/development/api-reference/console-panel-access/
Zuletzt geändert: 2026-12-03

> 5 Operationen. Which console sections and client features each account may use.

Diese Routen liegen auf der Konsole, Port 3375. Sie nehmen ein API-Token als `Authorization: Bearer ndt_...`; siehe [API-Tokens](https://docs.neode.sk/de/command-line/api-tokens.md). Die Beschreibungen stehen auf Englisch, wie in der OpenAPI-Beschreibung.

Which console sections and client features each account may use.

## GET /api/panel/access/catalog

List the console sections and client features access rules can name.

Needs `user.view`. `neodesk panel-access catalog` calls it.

**200**: Done (`application/json`)

| Field | Type | Required |
|---|---|---|
| `success` | `true` | yes |
| `data` | object | yes |
| `data.levels` | array of string, one of `none`, `read`, `write` |  |
| `data.groups` | array of object |  |
| `data.groups[].key` | string |  |
| `data.groups[].label` | string |  |
| `data.sections` | array of object |  |
| `data.sections[].key` | string |  |
| `data.sections[].label` | string |  |
| `data.sections[].group` | string |  |
| `data.sections[].readPermission` | string |  |
| `data.sections[].writePermission` | string or null |  |
| `data.features` | array of object |  |
| `data.features[].key` | string |  |
| `data.features[].label` | string |  |
| `data.features[].hardLock` | boolean |  |

| Error | When |
|---|---|
| 401 | No session or API token, or one that is not valid (code session_required or token_invalid) |
| 403 | The account or the token may not do this, or a write from a browser came without a good CSRF token |

## GET /api/panel/access/groups/{guid}

Show a user group's section and feature rules.

Needs `user.view`. `neodesk panel-access group` calls it.

| Parameter | In | Type | Required | What it is |
|---|---|---|---|---|
| `guid` | path | string | yes | The user group's guid (see user-groups list) |

**200**: Done (`application/json`)

| Field | Type | Required |
|---|---|---|
| `success` | `true` | yes |
| `data` | [PanelAccessRules](https://docs.neode.sk/de/development/api-reference/schemas.md#panelaccessrules) and object | yes |

| Error | When |
|---|---|
| 401 | No session or API token, or one that is not valid (code session_required or token_invalid) |
| 403 | The account or the token may not do this, or a write from a browser came without a good CSRF token |
| 404 | There is no such item, or the account does not see it |

## PUT /api/panel/access/groups/{guid}

Replace a user group's section and feature rules.

Only when you could give every member its role. When you are a member you may only keep or lower what the group gives. A save that would take your own write access to Users away is refused.

Needs `user.edit`. `neodesk panel-access group-set` calls it.

| Parameter | In | Type | Required | What it is |
|---|---|---|---|---|
| `guid` | path | string | yes | The user group's guid (see user-groups list) |

Request body, `application/json`:

| Field | Type | What it is |
|---|---|---|
| `sections` | array of object or null | Section rules, replacing the stored ones. Left out or null, every section rule goes. Unknown keys and repeats are dropped; a level that is none of the three becomes none |
| `sections[].resource_key` | string | A section key from the catalog, or group:&lt;group key>; key works too |
| `sections[].access_level` | string, one of `none`, `read`, `write` | access works too |
| `features` | array of object or null | Client feature rules, replacing the stored ones. Left out or null, every feature rule goes |
| `features[].feature_key` | string | A feature key from the catalog; key works too |
| `features[].enabled` | boolean |  |

**200**: Done (`application/json`)

| Field | Type | Required |
|---|---|---|
| `success` | `true` | yes |
| `data` | [PanelAccessRules](https://docs.neode.sk/de/development/api-reference/schemas.md#panelaccessrules) and object | yes |

| Error | When |
|---|---|
| 400 | The request is not valid |
| 401 | No session or API token, or one that is not valid (code session_required or token_invalid) |
| 403 | The account or the token may not do this, or a write from a browser came without a good CSRF token |
| 404 | There is no such item, or the account does not see it |

## GET /api/panel/access/users/{id}

Show an account's own section and feature rules.

Needs `user.view`. `neodesk panel-access user` calls it.

| Parameter | In | Type | Required | What it is |
|---|---|---|---|---|
| `id` | path | integer | yes | The account ID (see users list); at least 1 |

**200**: Done (`application/json`)

| Field | Type | Required |
|---|---|---|
| `success` | `true` | yes |
| `data` | [PanelAccessRules](https://docs.neode.sk/de/development/api-reference/schemas.md#panelaccessrules) and object | yes |

| Error | When |
|---|---|
| 401 | No session or API token, or one that is not valid (code session_required or token_invalid) |
| 403 | The account or the token may not do this, or a write from a browser came without a good CSRF token |
| 404 | There is no such item, or the account does not see it |

## PUT /api/panel/access/users/{id}

Replace an account's section and feature rules.

Only for an account whose role you could give. Your own account you may only keep or lower. A save that would take your own write access to Users away is refused.

Needs `user.edit`. `neodesk panel-access user-set` calls it.

| Parameter | In | Type | Required | What it is |
|---|---|---|---|---|
| `id` | path | integer | yes | The account ID (see users list); at least 1 |

Request body, `application/json`:

| Field | Type | What it is |
|---|---|---|
| `sections` | array of object or null | Section rules, replacing the stored ones. Left out or null, every section rule goes. Unknown keys and repeats are dropped; a level that is none of the three becomes none |
| `sections[].resource_key` | string | A section key from the catalog, or group:&lt;group key>; key works too |
| `sections[].access_level` | string, one of `none`, `read`, `write` | access works too |
| `features` | array of object or null | Client feature rules, replacing the stored ones. Left out or null, every feature rule goes |
| `features[].feature_key` | string | A feature key from the catalog; key works too |
| `features[].enabled` | boolean |  |

**200**: Done (`application/json`)

| Field | Type | Required |
|---|---|---|
| `success` | `true` | yes |
| `data` | [PanelAccessRules](https://docs.neode.sk/de/development/api-reference/schemas.md#panelaccessrules) and object | yes |

| Error | When |
|---|---|
| 400 | The request is not valid |
| 401 | No session or API token, or one that is not valid (code session_required or token_invalid) |
| 403 | The account or the token may not do this, or a write from a browser came without a good CSRF token |
| 404 | There is no such item, or the account does not see it |
