groups
This relation targets the list of user groups. User must be manager or administrator to access to the list of groups.
- dam -- groups: all the groups in the DAM instance
4.20.0+
group
This relation targets the canonical resource representing a user group.
4.20.0+
Create an user
A new user can be created by sending POST request on the users resource of the group in which the new user will be created.
The body of the request must be a valid user representation. login, lastName, firstName and email fields are mandatory. Optional acronym and password fields can be defined. If not set, default acronym will be used, and no password will be defined for the user.
POST /api/dam/groups/{groupId}/users
Content-Type: application/json
{
"login": "newLogin",
"lastName": "User",
"firstName": "New",
"email": "new.user@domain",
"acronym" : "NUS",
"password" : "newpassword"
}
The newly created user will not be active yet. To make the user active, the status field of the assigned-group resource must be updated by sending a PUT request.
PUT /api/dam/users/{userId}/assigned-groups/{groupId}
Content-Type: application/json+hal,[...]
{
"status" : "VALID"
}
4.20.0+
Comments
0 comments
Please sign in to leave a comment.