Skip to main content
POST
Create User

Authentication

✅ Tenant User (TenantUser)
✅ Organization User (CustomerEmployee)
❌ End User (EndUser)
❌ Personal Access Token not allowed
✅ Service Account

Required Permissions

Auth:Users:Create: Always required.

Authorizations

Authorization
string
header
required

Bearer Token: Used to authenticate API requests. More details how to generate the token: Authentication flows

X-DFNS-USERACTION
string
header
required

User Action Signature: Used to sign the change-inducing API requests. More details how to generate the token: User Action Signing flows

Body

application/json
email
string
required

For CustomerEmployee kind, it needs to be the email address of the new user. For EndUser kind, it can be a username/identifier (any unique string accepted, e.g. your internal user ID or email).

Minimum string length: 2
kind
enum<string>
required

The kind of user being created. It can be "CustomerEmployee" or "EndUser".

Available options:
CustomerEmployee,
EndUser
externalId
string

Value that can be used to correlate the entity with an external system.

isSSORequired
boolean
default:false

Defaults to false. If set to true, the user will have to authenticate via SSO. Can only be set to true for kind: CustomerEmployee.

registration
enum<string>
default:Direct

Controls the kind of registration flow this user will go through. Can be "Direct" or "Delegated". More details in endpoint description.

Available options:
Direct,
Delegated

Response

200 - application/json

Success

username
string
required

Username/identifier of the user (any unique string accepted, e.g. your internal user ID or email).

name
string
required

Display name of the user.

userId
string
required

User id.

Required string length: 1 - 64
Pattern: ^us-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{14,16}$
Example:

"us-6b58p-r53sr-rlrd3l5cj3uc4ome"

kind
enum<string>
required

User kind.

Available options:
TenantUser,
CustomerEmployee,
EndUser
credentialUuid
string
required

UUID of the user's primary credential.

isActive
boolean
required

Whether the user is active.

isServiceAccount
boolean
required

Whether the user is a service account.

isRegistered
boolean
required

Whether the user has completed registration.

isSSORequired
boolean
required

Whether the user must authenticate via SSO.

permissionAssignments
object[]
required

Permissions (roles) assigned to the user.

credentialId
string

The credential id used for user-action signing, derived as base64url(sha256(publicKey)).

orgId
string

Organization id.

Required string length: 1 - 64
Pattern: ^or-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{14,16}$
Example:

"or-30tnh-itmjs-s235s5ontr3r23h2"

tenantId
string

Tenant id.

Required string length: 1 - 64
Pattern: ^acct-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{14,16}$
Example:

"acct-24hka-dhili-9hgvdlvr1ohpibp4"

permissions
string[]

@deprecated - Flat list of API operations the user has access to.