Create Account User

Beta
POST/v1/identity/account-users

Idempotent with Idempotency-Key header. Learn more

Creates an account user and invites them to the account.

include[]optional arrayenumValues:roledepartment

Sub-objects to expand in the response. When omitted, sub-objects are returned as null.

namestringnullable

Display name.

emailstringnullable

Email address.

usernamestringnullable

Username.

passwordstringnullable

Password (only valid for scanner-role users backing a scanning station).

role_idoptional stringnullable

Role ID. Expandable.

department_idoptional stringnullable

Department ID. Expandable.

preferencesarray of object

Notification preferences to create for the new user (external targets only).

notification_type_codestringenumValues:invoiceorder_acknowledgementpurchase_order_submission

Notification type code. Must match a value of constants.AccountRelationNotificationType.

enabledboolean

Whether this notification type is enabled for the account user.

idstring

Account user ID.

objectstringenumValues:account_user

Resource type identifier.

namestringnullable

Display name.

emailstringnullable

Email address.

usernamestringnullable

Username.

image_urlstringnullable

Profile image URL.

statusstringenumValues:activedisabledremoved

Account user status.

roleobjectExpandablenullable

Assigned role.

idstring

Role ID.

objectstringenumValues:role

Resource type identifier.

namestring

Display name.

typestringenumValues:adminuserscanner

Role type code.

ownerobjectnullable

Owner of this resource.

Always returned as null in this endpoint.
permissionsarray of stringnullable

Permissions in {domain}:{action} format.

created_atstring (date-time)

Creation timestamp.

updated_atstring (date-time)

Last updated timestamp.

departmentobjectExpandablenullable

Assigned department.

idstring

Department ID.

objectstringenumValues:department

Resource type identifier.

namestring

Display name.

notesstringnullable

Notes about the department.

locationobjectnullable

Associated location.

Always returned as null in this endpoint.
scanning_stationsobjectnullable

Scanning stations in this department.

Always returned as null in this endpoint.
machinesobjectnullable

Machines in this department.

Always returned as null in this endpoint.
created_atstring (date-time)

Creation timestamp.

updated_atstring (date-time)

Last update timestamp.

last_used_atstring (date-time)nullable

When the user last used this account.

created_atstring (date-time)

When the account user was created.

updated_atstring (date-time)

When the account user was last updated.

Responses

201

Successful response for Create Account User