improve adding ldap user
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-04-02 14:13:21 +11:00
parent 1171a7bbaa
commit a78f2b7c88
2 changed files with 33 additions and 14 deletions

View File

@@ -146,6 +146,17 @@ Body
}
```
Add an ldap user
Body
```
{
"userName": "Ldap User",
"groupName": "Users",
"ldapUser": true
}
```
Registering a user requires specifying the group to which the user will belong. There are 2 built-in groups, with groupName of 'Administrators' or 'Users' and corresponding groupId of 1 and 2 respectively. Available groups can be retrieved via the `/api/admin/groups/list`
This operation can only be performed by a user that is a member of a group with the admin flag enabled, or a user who has the admin flag enabled individually on their database record.