Skip to main content

Get Account List

Use this API to query NineData organization accounts with pagination. Filter the result by account ID, account name, or login name.

Request URL: /openapi/v1/account/list

Request Method: GET

Request Parameters

ParameterTypeRequiredDescriptionExample
accountIdStringNoAccount ID.170**********159
accountNameStringNoAccount name.NineData
loginNameStringNoAccount login name.138********
statusStringNoAccount status: normal, freeze, or inviting. Omit this parameter to return all statuses.normal
currentIntegerNoCurrent page number, starting from 1, default is 1.1
pageSizeIntegerNoPage size, default is 10.10

Response Parameters

ParameterTypeDescriptionExample
successBoolWhether the interface call is successful. Return values: true, false.true
requestIdStringRequest ID.Ww2k2GVI-DJGGvSDnEJKv3PFdHIp6ETC
dataArrayAccount list, including account information and role information.
Account information:
  • accountId: Account ID.
  • accountName: Account name.
  • loginName: Account login name.
  • status: Account status. Return values:
    • normal: Normal.
    • freeze: Frozen.
    • inviting: Inviting
  • accountType: Account type. Return values:
    • general: General account.
    • sso: SSO single sign-on account.
  • mobile: Mobile phone number.
  • mail: Email.
  • lastLoginTime: Last login time.
  • roleList: Role list
Role information:
  • roleId: Role ID.
  • name: Role name.
  • type: Role type. Return values:
    • system: System administrator.
    • custom: Regular role.
{
"accountId": "170**********159",
"accountName": "NineData",
"loginName": "138********",
"status": "normal",
"accountType": "general",
"mobile": "138********",
"mail": "g**@9z.cloud",
"lastLoginTime": "2025-08-04 03:41:39Z",
"roleList": [{
"roleId": "635",
"name": "System Administrator",
"type": "system"
}
currentIntegerCurrent page number.1
pageSizeIntegerSize of each page.10
totalIntegerTotal number of accounts.4

Successful Invocation Example

{
"success": true,
"requestId": "Rv6t8FZX-JPNMqTHnKPQd1DHdRLw4DTQ",
"data": [{
"accountId": "170**********159",
"accountName": "NineData",
"loginName": "138********",
"status": "normal",
"accountType": "general",
"mobile": "138********",
"mail": "g**@9z.cloud",
"lastLoginTime": "2025-08-04 03:41:39Z",
"roleList": [{
"roleId": "635",
"name": "System Administrator",
"type": "system"
}]
}],
"current": 1,
"pageSize": 10,
"total": 1
}

Result

A successful response returns matching accounts and their assigned roles. Use accountId when you query audit logs, SQL execution logs, or permission-related OpenAPI resources.