ListUsers
Queries the users for the current Alibaba Cloud account.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
csas:ListUsers |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| CurrentPage |
integer |
Yes |
The page number. Valid values: 1 to 10,000. |
1 |
| PageSize |
integer |
Yes |
The number of entries per page. Valid values: 1 to 500. |
10 |
| FuzzyUsername |
string |
No |
The username for a fuzzy match. The value must be 1 to 128 characters long and can contain Chinese characters, letters, digits, periods (.), underscores (_), hyphens (-), asterisks (*), at signs (@), and spaces. |
王先生 |
| PreciseUsername |
string |
No |
The username for an exact match. The value must be 1 to 128 characters long and can contain Chinese characters, letters, digits, periods (.), underscores (_), hyphens (-), asterisks (*), at signs (@), and spaces. |
王先生@alibaba.com |
| SaseUserIds |
array |
No |
An array of user IDs. |
|
|
string |
No |
The user ID. You can obtain this ID by calling the |
su_e8f218fb171edd167c2ad917d21f53148bdefc510ca1f3c3cc0249d3643d**** |
|
| Status |
string |
No |
The status of the user. Valid values:
Valid values:
|
Enabled |
| Department |
string |
No |
The user's department. The value must be 1 to 128 characters long and can contain Chinese characters, letters, digits, periods (.), commas (,), semicolons (;), hyphens (-), underscores (_), slashes (/), at signs (@), and spaces. |
测试部 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| RequestId |
string |
The request ID. |
5FEF5CFA-14CC-5DE5-BD1F-AFFE0996E71D |
| TotalNum |
string |
The total number of users. |
1 |
| Users |
array<object> |
An array of user objects. |
|
|
object |
A user object. |
||
| Username |
string |
The username. |
王先生 |
| SaseUserId |
string |
The user ID. |
su_e8f218fb171edd167c2ad917d21f53148bdefc510ca1f3c3cc0249d3643d**** |
| Department |
string |
The user's department. |
测试部 |
|
string |
The user's email address. |
a***@example.net |
|
| Phone |
string |
The user's phone number. |
1381111**** |
| Status |
string |
The user status. Valid values:
|
Enabled |
| IdpName |
string |
The name of the Identity Provider (IdP). |
飞书 |
| FullDepartment |
array |
A list of full department paths. |
|
|
string |
A full department path. |
SASE/dept1/test dept2 |
Examples
Success response
JSON format
{
"RequestId": "5FEF5CFA-14CC-5DE5-BD1F-AFFE0996E71D",
"TotalNum": "1",
"Users": [
{
"Username": "王先生",
"SaseUserId": "su_e8f218fb171edd167c2ad917d21f53148bdefc510ca1f3c3cc0249d3643d****",
"Department": "测试部",
"Email": "a***@example.net",
"Phone": "1381111****",
"Status": "Enabled",
"IdpName": "飞书",
"FullDepartment": [
"SASE/dept1/test dept2"
]
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.