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
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Project ID. |
| 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
| Parameter | Type | Description |
|---|---|---|
| total_count | Long | Total number of records. |
| users | Array of ClientVersionUser objects | User list. |
| 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
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Error code. |
| error_msg | String | Error message. |
Status code: 401
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Error code. |
| error_msg | String | Error message. |
Status code: 500
| 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.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot