Server API: user groups
Copy as MarkdownThese routes are on the server API, port 21114 (21121 in Docker). They take an API key in X-API-Key or a sign-in token; see The HTTP API.
User groups of console accounts.
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 |
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 |
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 |