Commit bf9b6408 authored by klaus.illmayer's avatar klaus.illmayer
Browse files

Update api-usermanagement.md

parent c3cf32da
......@@ -19,7 +19,8 @@ After registration, the new created account has the user role `contributor`. Peo
This can only be performed by users with the user role `administrator`.
**API call: GET /api/users (it is also possible to query for an user with the parameter `q`, but currently only searching in username and not in displayName, see: https://gitlab.gwdg.de/sshoc/sshoc-marketplace-backend/-/issues/68#note_297729)
**API call: GET /api/users (it is also possible to query for an user with the parameter `q`, but currently only searching in username and not in displayName, see: https://gitlab.gwdg.de/sshoc/sshoc-marketplace-backend/-/issues/68#note_297729)**
**Result: A list of users including the user ID (users[].id). Look out for the user where you like to get the id (or use `q`-parameter if you know the username).**
## User role management
......@@ -32,6 +33,7 @@ First get the ID of the user = {user-id} (see "User management => Get the ID of
Then decide about the new user role for this user and take the value from the list of user roles = {user-role} (see "General information" resp. OpenAPI)
** API call: PUT `/api/users/{user-id}/role/{user-role}**
** Result: If successful, `200 OK` and returning user information of {user-id} with the applied {user-role}. User will benefit immediately from the user role privileges.**
See: https://gitlab.gwdg.de/sshoc/sshoc-marketplace-backend/-/issues/68#note_297534
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment