Queries the information about convenience accounts, 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 to return per page during paging.
|
10 |
| NextToken |
string |
No |
The token for the next query. You do not need to specify this parameter for the first call. If the response does not contain all results, the returned NextToken is not empty. You can use the returned NextToken in the next request to continue the query. |
caeba0bbb2be03f84eb48b699f0a**** |
| Filter |
string |
No |
The fuzzy search string. This parameter supports matching usernames (EndUserId) and email addresses (Email). This field supports wildcards (*). For example, if you set this field to |
a*m |
| FilterMap |
object |
No |
The fuzzy match condition map for user information. This parameter supports usernames, nicknames, mobile phone numbers, email addresses, remarks, and employee IDs. |
|
|
string |
No |
The fuzzy match text for the corresponding filter field. |
alice |
|
| EndUserIds |
array |
No |
The list of usernames (EndUserId) for exact match. |
|
|
string |
No |
The username (EndUserId) for exact match. |
alice |
|
| ExcludeEndUserIds |
array |
No |
The list of usernames (EndUserId) to be exactly excluded. |
|
|
string |
No |
The username (EndUserId) to be exactly excluded. |
tony |
|
| OrgId |
string |
No |
The organization ID for exact match to query the list of accounts that belong to the organization. |
org-4mdgc1cocc59z**** |
| GroupId |
string |
No |
The user group ID for exact match to query the list of accounts that belong to the 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 of the Boolean type. A value of true indicates that the specified information is queried. The user groups and departments to which the user belongs are 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 resource types, and the value is of the Boolean type. A value of true specifies to filter users to whom the specified cloud resource is allocated.
|
DesktopGroup: true |
|
| IsQueryAllSubOrgs |
boolean |
No |
The extended user information to query. |
true |
| FilterWithAssignedResource |
object |
No |
Filters users based on whether cloud resources are allocated. |
|
|
string |
No |
The key is one of the following types, and the value is of the Boolean type. A value of true indicates that users who are assigned the specified cloud resource are filtered.
|
DesktopGroup: true |
|
| Status |
integer |
No |
Specifies whether to query users in sub-organizations. |
true |
| ExcludeGroupId |
string |
No |
Filters users based on the allocation relationship of specified resources. The map key is the resource type. |
ug-12341234**** |
| BusinessChannel |
string |
No |
The status. |
0 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response information collection. |
||
| RequestId |
string |
The request ID. |
1CBAFFAB-B697-4049-A9B1-67E1FC5F**** |
| NextToken |
string |
The token for the next query. An empty NextToken indicates that no more results are available. |
caeba0bbb2be03f84eb48b699f0a4883 |
| Count |
integer |
The total number of users that meet the query conditions. |
0 |
| Users |
array<object> |
The collection of convenience account information. |
|
|
array<object> |
The collection of convenience account information. |
||
| Id |
integer |
The ID of the convenience account. |
4205** |
| EndUserId |
string |
The username. |
alice |
|
string |
The email address. |
username@example.com |
|
| Phone |
string |
The mobile phone number. This parameter is not returned if it is not configured. |
1381111**** |
| Status |
integer |
The status. Valid values:
|
0 |
| OwnerType |
string |
The type of the convenience account. Valid values:
Valid values:
|
Normal |
| Remark |
string |
The remark of the convenience account. |
Test user. |
| OrgId |
string |
[Deprecated] The ID of the department to which the convenience account belongs. |
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 created convenience account is of the administrator-activated type, you must specify a user administrator. Notifications, such as password reset notifications sent when end users reset passwords through the client, are sent to the email address or mobile phone number of the user administrator. 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 ID of the user group. |
ug-12341234**** |
| GroupName |
string |
The name of the user group. |
User group 1 |
| 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 ID of the department. |
org-4mdgc1cocc59z**** |
| OrgName |
string |
The name of the department. |
Department 1 |
| OrgNamePath |
string |
The name path from the root organization to the current organization. |
Product Department/Design Department |
| Avatar |
string |
The URL of the profile picture. |
https://cdn.***** |
| Address |
string |
The work address of the user. |
Hangzhou*** |
| NickName |
string |
The nickname of the user. The value is obtained in the following order:
|
Li** |
| RealNickName |
string |
The display name of the user. |
Li** |
| JobNumber |
string |
The employee ID of the user. |
A10000** |
| Extras |
object |
The extended information of the user. |
|
| AssignedResourceCount |
object |
The number of allocated cloud resources. |
|
|
any |
The supported cloud resource types:
|
Desktop: 3 |
|
| ResourcePolicyList |
array<object> |
The list of resource policies associated with the user. |
|
|
object |
|||
| PolicyId |
string |
The ID of the resource policy. |
|
| PolicyName |
string |
The Policy Name. |
|
| ExternalName |
string |
The name of the externally imported user. Note
This field is not publicly available. |
Ma** |
| Properties |
array<object> |
The properties of the user. |
|
|
object |
The list of properties. |
||
| Key |
string |
The property name. |
Role |
| Value |
string |
The property value. |
Student |
| EnableAdminAccess |
boolean |
Indicates whether administrator access permissions are enabled. |
|
| PasswordExpireDays |
integer |
The validity period of the password, in days. Valid values: 30 to 365. By default, the password never expires. |
30 |
| PasswordExpireRestDays |
integer |
The number of remaining days before the password expires. |
10 |
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": "User group 1"
}
],
"Orgs": [
{
"OrgId": "org-4mdgc1cocc59z****",
"OrgName": "Department 1",
"OrgNamePath": "Product Department/Design Department"
}
],
"Avatar": "https://cdn.*****",
"Address": "Hangzhou***",
"NickName": "Li**",
"RealNickName": "Li**",
"JobNumber": "A10000**",
"Extras": {
"AssignedResourceCount": {
"key": "Desktop: 3"
},
"ResourcePolicyList": [
{
"PolicyId": "",
"PolicyName": ""
}
]
},
"ExternalName": "Ma**",
"Properties": [
{
"Key": "Role",
"Value": "Student"
}
],
"EnableAdminAccess": false,
"PasswordExpireDays": 30,
"PasswordExpireRestDays": 10
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.