Create

Creates a user in your account. firstName, lastName and email are required; every other field falls back to its default. If single sign-on is disabled for the account and the user is created with active: true, an invitation email is sent. If the email address already belongs to a user of your account, no new user is created: when you supply a cuid and that user has no CUID yet (or the same one), the CUID is attached and the existing user is returned unchanged. Any other case is rejected as a conflict. Activating a user consumes a license — the request fails if none is free.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Path Params
string
required
Defaults to en

The locale to provide translated error messages

Body Params
string
required
string
required
string
required
boolean
Defaults to false
boolean
Defaults to false
boolean
Defaults to false
boolean
Defaults to false
string
Defaults to Europe/Berlin
string
enum
Defaults to en

UI language of the user. Defaults to the account locale, or en if the account has none.

Allowed:
string

Your own identifier for this user. Must match ^[a-zA-Z0-9._-]+$ and be unique within the account. May be used in place of the desk.ly ID in later requests.

assignedLocations
array of strings

IDs of the locations a manager or analyst has access to. Ignored for users without one of those roles. Unknown IDs are ignored.

assignedLocations
teams
array of strings

IDs of the teams the user belongs to. Ignored when permissionGroups is also sent. Requires permission groups to be enabled for the account. Unknown IDs are ignored.

teams
tags
array of strings

Array of tag ids to assign to the user.

tags
licensePlates
array of strings

Array of License Plate Strings. Not available for all customers. The license plates need to be valid license plates.

licensePlates
permissionGroups
object

Assigns the user to a company, department and teams by name. Takes precedence over teams. Requires permission groups to be enabled for the account.

string

External ID of the cost center bookings are billed to by default. Max 50 characters, must match an existing cost center of the account, otherwise the request is rejected. Requires the cost center feature.

Responses

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