Create an invited user

Required OAuth scope: users:write.

Creates a new user account with the invited status. If a user with the same 'mail' or 'username' was previously deleted, this operation will restore their account to an invited status.

If 'mail' is provided, the user receives an invitation email upon creation to activate their account, along with other emails. The account can also be activated via the 'Activate a user' endpoint. If 'sendInvitationEmail' is set to false, the user will not receive the invitation email, but may still receive other emails.

Query Params
string
enum

If true (or not provided), the invitation email is sent to the created user. If false, the invitation email is not sent.

Allowed:
Body Params
string
length ≥ 1

The email address of the user. If not given, username must be given.

string
length ≥ 1

The username that can be used to log in if the company allows it. If not given, mail must be given.

membership
object
required

The initial group membership of the user.

string

The unique ID of the primary group of the user.

string
length ≥ 1

The value of the Additional information field in the user’s profile. This is not the value of the custom fields associated with the user.

string
length ≥ 1

The first name of the user.

string
length ≥ 1

The last name of the user.

string
length ≥ 1

The role title of the user.

string
enum

The default language of the user, in a bigram format (en, fr, de, etc.). Default: en.

string
length ≥ 1

The organization that the user belongs to.

string
length ≥ 1

The phone number of the user.

date-time

The date and time when the user will be deactivated, in the YYYY-MM-DDThh:mm:ss.sssZ format (ISO 8601 in Coordinated Universal Time (UTC)).

Headers
string
enum
required

The version of the API.

Allowed:
Responses

Language
Credentials
OAuth2
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json