Subaccount list
List regular local subaccounts under the same primary account as the caller, with pagination.
POST /api/open/v1/account/listSubAccounts
Requires the “Sub-account Read” permission.
Request parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| pageNumber | Integer | Yes | Page number, starting at 1. |
| pageSize | Integer | Yes | Number of records per page, from 1 to 100. |
| userNameOrSubAccountPrefix | String | No | Username or login name prefix, up to 255 characters. Matching is case-insensitive. |
| roleId | Integer | No | Filter by role ID. |
| enabled | Boolean | No | true (enabled), false (disabled). |
Response fields
| Fields in data | Type | Description |
|---|---|---|
| items | Array of objects | Records on the current page. |
| items[].uid | String | Subaccount UID. |
| items[].account | String | Login name. |
| items[].userName | String | Username. |
| items[].roleId | Integer | Role ID. |
| items[].enabled | Boolean | true (enabled), false (disabled). |
| total | Integer | Total number of records matching the filters. |
Request example
{
"pageNumber": 1,
"pageSize": 20,
"userNameOrSubAccountPrefix": "employee-",
"roleId": 7,
"enabled": true
}
Response example
{
"requestId": "a471309f-2ad5-552d-a876-050c1fd7a689",
"code": "OK",
"msg": "Request succeeded.",
"data": {
"items": [
{
"uid": "sample-user-1042",
"account": "employee-1042",
"userName": "Sample employee",
"roleId": 7,
"enabled": true
}
],
"total": 1
}
}