ListUsers - List users
Lists users by using OpenAPI.
The new Qoder CN documentation site is now available. Content on this site may not reflect the latest product features and changes. Visit docs.qoder.cn for the latest product documentation.
|
Supported editions |
Enterprise Dedicated Edition |
Service endpoints
Get the service endpoint and replace {domain} in the API request syntax with your endpoint.
Authorization
|
Product |
Resource |
Required permission |
|
organization management |
User |
Read-only |
Request syntax
GET https://{domain}/oapi/v1/platform/users?filter={filter}&status={status}&deptId={deptId}&page={page}&perPage={perPage}
Request details |
Active users
Deleted users
|
Request headers |
|
|
The access token. See Access token for details. Example: pt-0fh3****0fbG_35af****0484. |
|
Request parameters |
|
|
filter A keyword for fuzzy searches on the username, logon name, email address, or phone number. |
|
|
status Filters users by their status.
|
|
|
deptId Filters users by department ID. |
|
|
page The page number to return. |
|
|
perPage The number of entries to return per page. The value must be in the range of |
Response parameters |
Active users
Deleted users
|
|
id The unique ID of the user. |
|
|
username The login name of the user. |
|
|
name The display name of the user. |
|
|
nickName The nickname of the user. |
|
|
email The email address of the user. |
|
|
lastOrganization The ID of the organization that the user last logged on to. |
|
|
staffId The employee ID of the user. |
|
|
sysDeptIds The IDs of the departments to which the user belongs. |
|
|
createdAt The time when the user was created. |
|
|
deletedAt The time when the user was deleted. This parameter is returned only for deleted users. |
Response headers
|
Parameter |
Description |
Example value |
|
|
The next page |
2 |
|
|
The current page |
1 |
|
|
The number of entries per page |
100 |
|
|
The previous page |
0 |
|
|
The request ID |
37294673-00CA-5B8B-914F-A8B35511E90A |
|
|
The total number of entries |
10 |
|
|
The total number of pages |
1 |
Error codes
For more information, see Error code center.