Create TenantUser

📘

Dashboard Users Only

This API applies strictly to Dashboard Users—accounts created manually via the Configuration Dashboard API.
It does not apply to Gateway Users, which are created through the standard (signup) CREATE_USER flow.
Consequently, this API cannot be used to access or modify data belonging to Gateway Users.

Base URL

https://your-dashboard-api-host

Required Headers

Authorization: Basic Base64(username:password)
Content-Type: application/json

Method and Path

POST /tenantUser/tenant/{tenantId}

Path Parameters

ParameterTypeRequiredDescription
tenantIdStringyesThe tenant id.

Request Body

TenantUserDto

The usernameType field accepts the following values: ANY, EMAIL.

📘

If usernameType is set to EMAIL, the field is validated to ensure it contains a valid email address.

📘

Since Dashboard Users are special users with custom authorities (security roles), their passwords must meet certain minimum requirements. The requirements are displayed in a detailed error response the first time you enter a password that does not meet them.
These requirements are not documented here because they may vary depending on the configuration.

{
    "username": "username",
    "usernameType": "ANY",
    "authorities": ["USER", "ADMIN"],
    "password": "password"
}
{
    "username": "[email protected]",
    "usernameType": "EMAIL",
    "authorities": ["USER", "ADMIN"],
    "password": "password"
}

Response 200 OK

TenantUserResource

{
  "tenantUserId": "ee7bd790-b578-48f0-a631-021a9a87f471",
  "username": "[email protected]",
  "usernameType": "EMAIL",
  "authorities": [
      "USER",
      "ADMIN"
  ],
  "source": "DASHBOARD",
  "confirmed": true,
  "created": "2026-09-17T10:03:37.260892428Z",
  "updated": "2026-09-17T10:03:37.260892428Z"
}

Did this page help you?