Skip to main content
POST
/
users
Create User
curl --request POST \
  --url https://{instance}.domo.com/api/identity/v1/users \
  --header 'Content-Type: application/json' \
  --header 'X-DOMO-Developer-Token: <api-key>' \
  --data '
{
  "displayName": "John Doe",
  "emailAddress": "john.doe@example.com",
  "roleId": 1
}
'
{
  "id": 123456,
  "displayName": "John Doe",
  "userName": "john.doe@example.com",
  "emailAddress": "john.doe@example.com",
  "roleId": 1,
  "attributes": [
    {
      "key": "department",
      "values": [
        "Engineering",
        "Product"
      ]
    }
  ]
}

Authorizations

X-DOMO-Developer-Token
string
header
required

Domo Developer Token for authentication

Body

application/json
displayName
string
required

Display name of the user

Example:

"John Doe"

emailAddress
string<email>
required

Email address of the user

Example:

"john.doe@example.com"

roleId
integer
required

Role ID to assign to the user

Example:

1

Response

User created successfully

id
integer

Unique identifier for the user

Example:

123456

displayName
string

Display name of the user

Example:

"John Doe"

userName
string

Username of the user

Example:

"john.doe@example.com"

emailAddress
string<email>

Email address of the user

Example:

"john.doe@example.com"

roleId
integer

Role ID assigned to the user

Example:

1

attributes
object[]

Custom attributes associated with the user