Users
Create user
This endpoint lets you create a user. If no password given, a password will automatically be generated.
The password will be ignored if send_invitation is set to True.
You need to have WRITE access on the organization of the user you want to create.
If you want to have an invited user but send the invitation email later, you have to send the send_invitation parameter as False and a status parameter to invited.
You will then have to call the invitation endpoint to send the invitation email to the user.
post/user
Request body
Example request
{
"first_name": "Perceval",
"last_name": "de Galles",
"org_id": 42,
"accesses": [
[
1,
2
],
[
1,
3
]
],
"role": "BUSINESS_MANAGER",
"custom_role": "my_custom_role",
"status": "active",
"lang": "fr"
}Response
OK
Example response
{
"id": "5309c3a237bbc544d8e26737"
}