# Create user Adds a user to the organization of the authenticated caller. Requires the user management permission, which organization admins have by default. * If no account exists for email, a new user is created with the given name, role and password settings. Either provide password or set generateTemporaryPassword to true, in which case the generated password is returned once in temporaryPassword. * If an account already exists for email but does not belong to the organization, it is given access with the requested role. Its existing name and password are kept, and temporaryPassword is not returned. * If the user already belongs to the organization, the request fails with 409 Conflict and their existing access is not changed. Endpoint: POST /users Version: 26.22.0.4436 Security: Bearer ## Request fields (application/json): - `email` (string) Email of the user. If an account with this email already exists, it is given access to the organization instead of being created. - `role` (string) Role the user will have in the organization. Enum: "Admin", "LimitedAdmin", "Credentialing", "LimitedCredentialing", "Reader", "LimitedReader" - `password` (string) Password for a new user. Must be at least 15 characters long and include 1 uppercase letter, 1 lowercase letter, 1 number and 1 symbol. Must be empty when generateTemporaryPassword is true. - `requirePasswordChange` (boolean) Whether a new user must change their password at next sign-in. - `generateTemporaryPassword` (boolean) When true, a temporary password is generated for a new user and returned once in temporaryPassword. - `firstName` (string) First name of a new user. - `lastName` (string) Last name of a new user. ## Response 201 fields (application/json): - `id` (string) The unique identifier of this user. Example: "8f6d2c1a-4b7e-4e3a-9c55-2d1f0b6a7e91" - `email` (string) The email of this user. Example: "jane.doe@example.com" - `firstName` (string) The first name of this user. Example: "Jane" - `lastName` (string) The last name of this user. Example: "Doe" - `role` (string) The role of this user in the organization. Enum: "Admin", "LimitedAdmin", "Credentialing", "LimitedCredentialing", "Reader", "LimitedReader" - `requirePasswordChange` (boolean) Whether this user must change their password at next sign-in. - `temporaryPassword` (string) The generated temporary password. Only set when the request set generateTemporaryPassword to true, when creating or updating a user, and returned only once. It is not set when an existing account is added to the organization. ## Response 400 fields ## Response 401 fields ## Response 403 fields ## Response 409 fields ## Response 500 fields