Updated on 2026-11-20 GMT+08:00

Listing Client Version Users

Function

Lists users who use a version by tenant ID, client version, and OS type. Fuzzy search by username is supported. The data comes from the offline statistics table and is updated every hour.

Debugging

You can debug this API through automatic authentication in API Explorer or use the SDK sample code generated by API Explorer.

Authorization Information

Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.

  • If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
  • If you are using identity policy-based authorization, the following identity policy-based permissions are required.

    Action

    Access Level

    Resource Type (*: required)

    Condition Key

    Alias

    Dependencies

    workspace:clientVersion:listUsers

    List

    -

    -

    -

    -

URI

GET /v2/{project_id}/users/list-by-version

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID.

Table 2 Query Parameters

Parameter

Mandatory

Type

Description

client_version

Yes

String

Client version.

os_type

Yes

String

OS type (Linux/Windows/Android/Mac), which is verified at the code layer.

user_name

No

String

Username (fuzzy match, excluding the suffix @domain).

client_ip

No

String

Terminal IP address (exact match).

client_mac

No

String

Terminal MAC address (exact match).

last_connect_time_start

No

String

Start time of the last connection (UTC, in the ISO 8601 format, for example, 2026-07-10T03:52:37Z).

last_connect_time_end

No

String

End time of the last connection (UTC, in the ISO 8601 format, for example, 2026-07-10T03:52:37Z).

offset

No

Integer

Pagination offset.

limit

No

Integer

Page size.

timezone

No

String

Time zone ID (IANA time zone ID, for example, Asia/Shanghai; or UTC offset, for example, +08:00). If this parameter is not passed, the value of last_login_time is returned in UTC format. If this parameter is passed, the value is converted based on the specified time zone.

Request Parameters

None

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

total_count

Long

Total number of records.

users

Array of ClientVersionUser objects

User list.

Table 4 ClientVersionUser

Parameter

Type

Description

user_name

String

Username.

client_version

String

Client version.

domain

String

User domain name (the part following @).

os_type

String

OS type (Linux/Windows/Android/Mac).

client_ip

String

Terminal IP address.

client_mac

String

Terminal MAC address.

last_login_time

String

Last login time (UTC, in the ISO 8601 format).

Status code: 400

Table 5 Response body parameters

Parameter

Type

Description

error_code

String

Error code.

error_msg

String

Error message.

Status code: 401

Table 6 Response body parameters

Parameter

Type

Description

error_code

String

Error code.

error_msg

String

Error message.

Status code: 500

Table 7 Response body parameters

Parameter

Type

Description

error_code

String

Error code.

error_msg

String

Error message.

Example Requests

GET /v2/0e69423d4400f4a82f67c0059a1e4cc8/users/list-by-version?client_version=25.2.1.0&os_type=Windows&offset=0&limit=10

Example Responses

Status code: 200

{
  "total_count" : 128,
  "users" : [ {
    "user_name" : "zhangsan",
    "client_version" : "25.2.1.0",
    "os_type" : "Windows",
    "domain" : "huawei.com",
    "client_ip" : "10.0.0.1",
    "client_mac" : "AA:BB:CC:DD:EE:FF",
    "last_login_time" : "2026-06-30T10:23:45.000Z"
  } ]
}

Status Codes

Status Code

Description

200

OK

400

Bad Request

401

Unauthorized

500

Internal Server Error

Error Codes

See Error Codes.