v1
latestOpenAPI 3.0.32026-07-24148824715.6 KBCreate a new user
Creates a new user.
To enable the user to access an account, they must be assigned at least one role. A user will not be sent an email invite until assigned at least one role.
Follow these steps to create and configure a user:
-
Create user: Create the user by calling POST /users.
-
Get role(s): Use GET /roles to fetch the role_identifier(s) you wish to assign to the user.
-
(Optional) Get account: If you need to assign roles for an account you're not currently logged into but within the same organization, retrieve the relevant account_identifier using GET clients/me/accounts.
-
Assign user role: Use POST /users/{user_identifier}/roles to assign the user to an account with a list of role_identifier(s) and optionally the account_identifier if applicable.
You need the "Create and update users" permission to use this endpoint.
Request body
Example request
{
"email": "john@example.com",
"name": "John Doe"
}Response
CREATED
Example response
{
"active": true,
"client_identifier": "00000000-0000-0000-0000-000000000000",
"email": "example@mail.com",
"identifier": "00000000-0000-0000-0000-000000000000",
"name": "John Doe",
"user_type": "HUMAN"
}