# Server-API: user groups

Quelle: https://docs.neode.sk/de/development/api-reference/server-user-groups/
Zuletzt geändert: 2026-12-03

> 3 Operationen. User groups of console accounts.

Diese Routen liegen auf der Server-API, Port 21114 (21121 in Docker). Sie nehmen einen API-Schlüssel in `X-API-Key` oder ein Anmelde-Token; siehe [Die HTTP-API](https://docs.neode.sk/de/development/api.md#signing-in). Die Beschreibungen stehen auf Englisch, wie in der OpenAPI-Beschreibung.

User groups of console accounts.

## GET /api/user-groups

List user groups.

A pro account gets an empty list.

On the server API, port 21114. Needs `user.view`.

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

| Field | Type |
|---|---|
| `data` | array of object |
| `data[].id` | integer |
| `data[].guid` | string |
| `data[].name` | string |
| `data[].note` | string |
| `data[].team_id` | string |
| `data[].member_count` | integer |
| `data[].created_at` | string (date-time) |
| `total` | integer |

| Error | When |
|---|---|
| 401 | No credential, or one that is not valid |
| 403 | The credential's role lacks the permission |

## POST /api/user-groups

Create a user group.

Only super_admin, admin and global_admin. The name is cut to 256 characters, the note to 1024 and team_id to 32.

On the server API, port 21114. Only for the role `super_admin, admin or global_admin`.

Request body, `application/json`:

| Field | Type | Required |
|---|---|---|
| `name` | string | yes |
| `note` | string |  |
| `team_id` | string |  |

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

| Field | Type |
|---|---|
| `id` | integer |
| `guid` | string |
| `name` | string |
| `note` | string |
| `team_id` | string |
| `member_count` | integer |
| `created_at` | string (date-time) |

| Error | When |
|---|---|
| 400 | The request is not valid |
| 401 | No credential, or one that is not valid |
| 403 | The credential's role lacks the permission |

## GET /api/user/group

Show the user groups as the RustDesk client reads them.

name and guid are the first group's; without groups, and for a pro account, they are Default and default.

On the server API, port 21114. Takes the token of a RustDesk client sign-in.

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

| Field | Type |
|---|---|
| `data` | object |
| `data.name` | string |
| `data.guid` | string |
| `data.groups` | array of object |
| `data.groups[].name` | string |
| `data.groups[].guid` | string |
| `data.groups[].note` | string |
| `data.groups[].team_id` | string |

| Error | When |
|---|---|
| 401 | No credential, or one that is not valid |
