Skip to main content
POST
/
auth
/
users
Create User
curl --request POST \
  --url https://api.dfns.io/auth/users \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-DFNS-USERACTION: <api-key>' \
  --data '{
  "email": "[email protected]",
  "kind": "CustomerEmployee",
  "publicKey": "<string>",
  "externalId": "<string>",
  "isSSORequired": false
}'
{
  "username": "<string>",
  "name": "<string>",
  "userId": "us-6b58p-r53sr-rlrd3l5cj3uc4ome",
  "kind": "CustomerEmployee",
  "credentialUuid": "<string>",
  "orgId": "<string>",
  "permissions": [
    "<string>"
  ],
  "isActive": true,
  "isServiceAccount": true,
  "isRegistered": true,
  "isSSORequired": true,
  "permissionAssignments": [
    {
      "permissionName": "<string>",
      "permissionId": "<string>",
      "assignmentId": "<string>",
      "operations": [
        "<string>"
      ]
    }
  ]
}

Authentication

✅ Organization User (CustomerEmployee)
❌ Delegated User (EndUser)
❌ Personal Access Token not allowed
✅ Service Account

Required Permissions

Auth:Users:Create: Always required.

Authorizations

Authorization
string
header
required
X-DFNS-USERACTION
string
header
required

Body

application/json
email
string<email>
required
kind
enum<string>
required
Available options:
CustomerEmployee
publicKey
string
externalId
string
isSSORequired
boolean
default:false

Response

200 - application/json
username
string
required
name
string
required
userId
string
required
Required string length: 1 - 64
Example:
kind
enum<string>
required
Available options:
CustomerEmployee,
EndUser
credentialUuid
string
required
orgId
string
required
isActive
boolean
required
isServiceAccount
boolean
required
isRegistered
boolean
required
isSSORequired
boolean
required
permissionAssignments
object[]
required
permissions
string[]