Create Accounts Directly
Create accounts or associate existing organization accounts in a private deployment. This API requires administrator permissions and is unavailable in SaaS.
Endpoint: /openapi/v1/account/inviteUser
Method: POST
Request parameters
The request body is an array of account objects. Do not wrap the array in an object.
| Parameter | Type | Required | Description |
|---|---|---|---|
| name | String | Yes | Account name or login name. |
| create | Boolean | Yes | true creates an account and generates an initial password. false associates an existing organization account. |
| roleId | Long | No | Role ID to assign to the account. |
Request example
[
{
"name": "new_user",
"create": true,
"roleId": 1001
}
]
Response parameters
| Parameter | Type | Description |
|---|---|---|
| success | Boolean | Whether the request succeeded. |
| requestId | String | Request ID. |
| data | Array | Results of the account creation or association. |
| data[].name | String | Account name. |
| data[].password | String | Initial password, returned only for a newly created account. |
Success response
{
"success": true,
"requestId": "<requestId>",
"data": [
{
"name": "new_user",
"password": "<initialPassword>"
}
]
}