office-users

Create an office user and their company mailbox

Changed on

Creates the Keycloak account with a generated password and the office roles, the users row (password change forced at first login) and the OVH mailbox named after the login. The two passwords are emailed to personal_email; without one, or when the email fails (credentials_email_error), they come back in the response. 400 when the email is not on the company domain or a role is not an office one; 409 when the account or the mailbox already exists; 503 without the OVH keys.

post/api/office-users

Request

  • Base URL: https://api.corabea.it (the document declares no server; this is the origin it was published from)
  • URL: https://api.corabea.it/api/office-users
  • Auth: HTTP bearer

Request body

first_namestring required
last_namestring required
emailstring required

Login email and company mailbox: nome.cognome@corabea.it

rolesUserRole[] required

Office roles only (OFFICE_ROLES)

phonestring nullable
personal_emailstring nullable

Where the two passwords are sent; without it the response carries them

Response

Successful Response

user_idstring required
first_namestring required
last_namestring required
emailstring required
phonestring nullable
rolesstring[]

The office roles held

is_operatorboolean

Also an expert: deactivated from Esperti, not from here

credentials_sent_tostring nullable
credentials_email_errorstring nullable

Why the email to personal_email failed

login_passwordstring nullable
mailbox_passwordstring nullable

Changes