Create a new user
Creates a new user with the given root role.
Authentication
Authorizationstring
API key needed to access this API
OR
AuthorizationBearer
API key needed to access this API, in Bearer token format
Request
createUserSchema
rootRole
The role to assign to the user. Can be either the role's ID or its unique name.
username
The user's username. Must be provided if email is not provided.
email
The user's email address. Must be provided if username is not provided.
name
The user’s name (not the user’s username).
password
Password for the user
sendEmail
Whether to send a welcome email with a login link to the user or not. Defaults to true.
Response headers
location
The location of the newly created resource.
Response
The resource was successfully created.
id
The user id
name
Name of the user
email
Email of the user
username
A unique username for the user
imageUrl
URL used for the user profile image
inviteLink
If the user is actively inviting other users, this is the link that can be shared with other users
loginAttempts
How many unsuccessful attempts at logging in has the user made
emailSent
Is the welcome email sent to the user or not
rootRole
Which root role this user is assigned. Usually a numeric role ID, but can be a string when returning newly created user with an explicit string role.
seenAt
The last time this user logged in
createdAt
The user was created at this time
accountType
A user is either an actual User or a Service Account
Allowed values:
permissions
Deprecated
scimId
The SCIM ID of the user, only present if managed by SCIM
seatType
The seat type of this user
activeSessions
Count of active browser sessions for this user
deletedSessions
Experimental. The number of deleted browser sessions after last login