ListUsers
Queries EIAM account information by using paging.
Operation description
This operation queries only the direct permissions of the organization, which are the applications directly assigned to the organization. When you call this operation, you can use the ApplicationIds parameter to filter applications.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eiam:ListUsers |
list |
*User
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
idaas_ue2jvisn35ea5lmthk267xxxxx |
| PageNumber |
integer |
No |
The page number. Default value: 1. |
1 |
| PageSize |
integer |
No |
The number of entries per page. Default value: 20. Maximum value: 100. |
20 |
| UserIds |
array |
No |
The list of account IDs. |
["user_d6sbsuumeta4h66ec3il7yxxxx"] |
|
string |
No |
The account ID. |
user_d6sbsuumeta4h66ec3il7yxxxx |
|
| UsernameStartsWith |
string |
No |
The username prefix for a left-match query. |
name_001 |
| DisplayNameStartsWith |
string |
No |
The display name prefix for a left-match query. |
name |
| PhoneRegion |
string |
No |
The region code of the mobile phone number. Example: 86 for the Chinese mainland, without 00 or +. |
86 |
| PhoneNumber |
string |
No |
The mobile phone number of the account. |
156xxxxxxx |
|
string |
No |
The email address of the account. |
user@example.com |
|
| UserExternalId |
string |
No |
The external ID, which is used to map external data to IDaaS accounts. Note: The external ID must be unique within the same source type and source ID. |
id_wovwffm62xifdziem7an7xxxxx |
| UserSourceId |
string |
No |
The source ID of the account. For the built-in type, the default value is the instance ID. For other types, the value corresponds to the enterprise ID of the source. For example, the DingTalk source corresponds to the corpId of the DingTalk enterprise. |
idaas_ue2jvisn35ea5lmthk267xxxxx |
| UserSourceType |
string |
No |
The source type of the account. Valid values:
|
build_in |
| Status |
string |
No |
The status of the account. Valid values:
|
enable |
| OrganizationalUnitId |
string |
No |
The organizational unit ID. |
ou_wovwffm62xifdziem7an7xxxxx |
| NextToken |
string |
No |
The query token. |
NTxxxxexample |
| MaxResults |
integer |
No |
The number of entries per page for paging. |
20 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
| RequestId |
string |
The request ID. |
0441BD79-92F3-53AA-8657-F8CE4A2B912A |
| TotalCount |
integer |
The total number of entries. |
100 |
| Users |
array<object> |
The list of accounts. |
|
|
object |
The account information. |
||
| UserId |
string |
The account ID. |
user_d6sbsuumeta4h66ec3il7yxxxx |
| Username |
string |
The username. |
name001 |
| DisplayName |
string |
The display name. |
display_name001 |
| PasswordSet |
boolean |
Indicates whether the password is set. |
false |
| PhoneRegion |
string |
The region code of the mobile phone number. Example: 86 for the Chinese mainland, without 00 or +. |
86 |
| PhoneNumber |
string |
The phone number. |
156xxxxxxx |
| PhoneNumberVerified |
boolean |
Indicates whether the phone number is verified. A value of true indicates that the phone number has been verified by the user or set as verified by the administrator. A value of false indicates that the phone number is not verified. |
true |
|
string |
The email address of the account. |
user@example.com |
|
| EmailVerified |
boolean |
Indicates whether the email address is verified. A value of true indicates that the email address has been verified by the user or set as verified by the administrator. A value of false indicates that the email address is not verified. |
true |
| UserExternalId |
string |
The external ID of the account. This ID is used to map external data to IDaaS accounts. The default value is the IDaaS account ID. Note: The external ID must be unique within the same source type and source ID. |
user_d6sbsuumeta4h66ec3il7yxxxx |
| UserSourceType |
string |
The source type of the account. Valid values:
|
build_in |
| UserSourceId |
string |
The source ID of the account. For the built-in type, the default value is the instance ID. For other types, the value corresponds to the enterprise ID of the source. For example, the DingTalk source corresponds to the corpId of the DingTalk enterprise. |
idaas_ue2jvisn35ea5lmthk267xxxxx |
| Status |
string |
The status of the account. Valid values:
|
enabled |
| AccountExpireTime |
integer |
The expiration time of the account. The value is a UNIX timestamp in milliseconds. |
1652085686179 |
| PasswordExpireTime |
integer |
The expiration time of the password. The value is a UNIX timestamp in milliseconds. |
1652085686179 |
| RegisterTime |
integer |
The registration time of the account. The value is a UNIX timestamp in milliseconds. |
1652085686179 |
| LockExpireTime |
integer |
The expiration time of the account lock. The value is a UNIX timestamp in milliseconds. |
1652085686179 |
| CreateTime |
integer |
The creation time of the account. The value is a UNIX timestamp in milliseconds. |
1652085686179 |
| UpdateTime |
integer |
The last update time of the account. The value is a UNIX timestamp in milliseconds. |
1652085686179 |
| Description |
string |
The description of the account. |
Test account |
| InstanceId |
string |
The instance ID. |
idaas_ue2jvisn35ea5lmthk267xxxxx |
| NextToken |
string |
The query token. |
NTxxxxxexample |
| MaxResults |
integer |
The maximum number of entries per page for a paged query. |
20 |
Examples
Success response
JSON format
{
"RequestId": "0441BD79-92F3-53AA-8657-F8CE4A2B912A",
"TotalCount": 100,
"Users": [
{
"UserId": "user_d6sbsuumeta4h66ec3il7yxxxx",
"Username": "name001",
"DisplayName": "display_name001",
"PasswordSet": false,
"PhoneRegion": "86",
"PhoneNumber": "156xxxxxxx",
"PhoneNumberVerified": true,
"Email": "user@example.com",
"EmailVerified": true,
"UserExternalId": "user_d6sbsuumeta4h66ec3il7yxxxx",
"UserSourceType": "build_in",
"UserSourceId": "idaas_ue2jvisn35ea5lmthk267xxxxx",
"Status": "enabled",
"AccountExpireTime": 1652085686179,
"PasswordExpireTime": 1652085686179,
"RegisterTime": 1652085686179,
"LockExpireTime": 1652085686179,
"CreateTime": 1652085686179,
"UpdateTime": 1652085686179,
"Description": "xxxx",
"InstanceId": "idaas_ue2jvisn35ea5lmthk267xxxxx"
}
],
"NextToken": "NTxxxxxexample",
"MaxResults": 20
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.