Queries convenience account information, such as usernames, email addresses, and remarks.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecd:DescribeUsers |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| MaxResults |
integer |
No |
The number of entries per page for a paged query.
|
10 |
| NextToken |
string |
No |
The token for the next query. You do not need to set this parameter for the first call. |
caeba0bbb2be03f84eb48b699f0a**** |
| Filter |
string |
No |
The fuzzy search string. This parameter supports matching by username (EndUserId) and email (Email). This field supports wildcards (*). For example, if you set this field to |
a*m |
| FilterMap |
object |
No |
||
|
string |
No |
|||
| EndUserIds |
array |
No |
The list of usernames (EndUserId) for exact match. |
|
|
string |
No |
Performs an exact match by username (EndUserId) to query account information with the specified username. |
alice |
|
| ExcludeEndUserIds |
array |
No |
The list of usernames (EndUserId) to exclude exactly. |
|
|
string |
No |
Excludes the username (EndUserId) exactly to query the account list that does not contain the specified username. |
tony |
|
| OrgId |
string |
No |
Performs an exact match by organization ID to query the list of accounts that belong to the specified organization. |
org-4mdgc1cocc59z**** |
| GroupId |
string |
No |
Performs an exact match by user group ID to query the list of accounts that belong to the specified user group. |
ug-12341234**** |
| ShowExtras |
object |
No |
Note
This parameter is not publicly available. |
null |
|
any |
No |
The key is one of the following types, and the value is a boolean. Passing true indicates that you want to query the specified information. Membership in groups and departments is returned by default.
- |
ResourcesCount: true |
|
| FilterWithAssignedResources |
object |
No |
Note
This parameter is not publicly available. |
null |
|
boolean |
No |
The key is one of the following types, and the value is a boolean. Passing true filters users who are assigned the specified cloud resource.
- |
DesktopGroup: true |
|
| IsQueryAllSubOrgs |
boolean |
No |
Queries extended user information. |
true |
| FilterWithAssignedResource |
object |
No |
Filters users based on whether cloud resources are assigned. |
|
|
string |
No |
The key is one of the following types, and the value is a Boolean type. Set the value to true to filter users who are assigned the specified cloud resource.
|
DesktopGroup: true |
|
| Status |
integer |
No |
Specifies whether to query users in sub-organizations. |
true |
| ExcludeGroupId |
string |
No |
||
| BusinessChannel |
string |
No |
The status. |
ENTERPRISE |
|
No |
||||
|
No |
The channel. |
ENTERPRISE |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
1CBAFFAB-B697-4049-A9B1-67E1FC5F**** |
| NextToken |
string |
The token for the next query. If NextToken is empty, no more results exist. |
caeba0bbb2be03f84eb48b699f0a4883 |
| Count |
integer |
The total number of users that meet the query conditions |
|
| Users |
array<object> |
The collection of convenience account information. |
|
|
array<object> |
The collection of convenience account information. |
||
| Id |
integer |
The convenience account ID. |
4205** |
| EndUserId |
string |
The username. |
alice |
|
string |
The email address. |
username@example.com |
|
| Phone |
string |
The phone number. This parameter is not returned if it is not set. |
1381111**** |
| Status |
integer |
The status. Valid values:
|
0 |
| OwnerType |
string |
The convenience account type, which includes:
Valid values:
|
Normal |
| Remark |
string |
The remark of the convenience account. |
Test user. |
| OrgId |
string |
The department ID to which the convenience account belongs. Note
This parameter will be deprecated soon. |
org-4mdgc1cocc59z**** |
| WyId |
string |
The globally unique ID of the convenience account. |
41fd1254d8f7**** |
| IsTenantManager |
boolean |
Indicates whether the user is a user administrator. If the convenience account is of the administrator-activated type, a user administrator must be specified. Notifications such as password resets initiated by end users through the client are sent to the user administrator's email or phone. For more information, see Create a convenience account. |
true |
| Groups |
array<object> |
The collection of user groups to which the convenience account belongs. |
|
|
object |
The properties of the user group to which the convenience account belongs. |
||
| GroupId |
string |
The user group ID. |
ug-12341234**** |
| GroupName |
string |
The user group name. |
UserGroup1 |
| Orgs |
array<object> |
The collection of departments to which the convenience account belongs. |
|
|
object |
The properties of the department to which the convenience account belongs. |
||
| OrgId |
string |
The department ID. |
org-4mdgc1cocc59z**** |
| OrgName |
string |
The department name. |
Department1 |
| OrgNamePath |
string |
||
| Avatar |
string |
The URL of the user's profile picture. |
https://cdn.***** |
| Address |
string |
The work address of the user. |
Hangzhou *** |
| NickName |
string |
The nickname of the user.
|
Li** |
| RealNickName |
string |
The display name of the user. |
Li** |
| JobNumber |
string |
The employee ID of the user. |
A10000** |
| Extras |
object |
The extended user information. |
|
| AssignedResourceCount |
object |
The number of assigned cloud resources. |
|
|
any |
Supported cloud resource types:
|
Desktop: 3 |
|
| ResourcePolicyList |
array<object> |
||
|
object |
|||
| PolicyId |
string |
||
| PolicyName |
string |
||
| ExternalName |
string |
The username imported from an external source. Note
This field is not publicly available. |
Ma** |
| Properties |
array<object> |
The user properties. |
|
|
object |
The property list. |
||
| Key |
string |
The property name. |
Role |
| Value |
string |
The property value. |
Student |
| EnableAdminAccess |
boolean |
Indicates whether administrator access permissions are enabled. |
|
| PasswordExpireDays |
integer |
||
| PasswordExpireRestDays |
integer |
Examples
Success response
JSON format
{
"RequestId": "1CBAFFAB-B697-4049-A9B1-67E1FC5F****",
"NextToken": "caeba0bbb2be03f84eb48b699f0a4883",
"Count": 0,
"Users": [
{
"Id": 0,
"EndUserId": "alice",
"Email": "username@example.com",
"Phone": "1381111****",
"Status": 0,
"OwnerType": "Normal",
"Remark": "Test user.",
"OrgId": "org-4mdgc1cocc59z****",
"WyId": "41fd1254d8f7****",
"IsTenantManager": true,
"Groups": [
{
"GroupId": "ug-12341234****",
"GroupName": "用户组1"
}
],
"Orgs": [
{
"OrgId": "org-4mdgc1cocc59z****",
"OrgName": "部门1",
"OrgNamePath": ""
}
],
"Avatar": "https://cdn.*****",
"Address": "杭州市***",
"NickName": "李**",
"RealNickName": "李**",
"JobNumber": "A10000**",
"Extras": {
"AssignedResourceCount": {
"key": "Desktop: 3"
},
"ResourcePolicyList": [
{
"PolicyId": "",
"PolicyName": ""
}
]
},
"ExternalName": "马**",
"Properties": [
{
"Key": "Role",
"Value": "Student"
}
],
"EnableAdminAccess": false,
"PasswordExpireDays": 0,
"PasswordExpireRestDays": 0
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.