DescribeUsers
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 when you call this operation for the first time. |
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. Queries the account information that matches the specified username. |
alice |
|
| ExcludeEndUserIds |
array |
No |
The list of usernames (EndUserId) to be exactly excluded. |
|
|
string |
No |
The username (EndUserId) to be exactly excluded. Queries the list of accounts that do not contain the specified username. |
tony |
|
| OrgId |
string |
No |
The organization ID for exact match. Queries the list of accounts that belong to the specified organization. |
org-4mdgc1cocc59z**** |
| GroupId |
string |
No |
The user group ID for exact match. Queries 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 of the Boolean type. A value of true indicates that the specified information is queried. The user groups and departments to which the users belong 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 types, and the value is of the Boolean type. A value of true indicates that users to whom the specified cloud resource is allocated are filtered.
|
DesktopGroup: true |
|
| IsQueryAllSubOrgs |
boolean |
No |
The extended information of users to query. |
true |
| FilterWithAssignedResource |
object |
No |
The filter condition used to filter 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 to whom the specified cloud resource is allocated 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 user information. |
|
|
array<object> |
The collection of convenience user information. |
||
| Id |
integer |
The ID of the convenience user. |
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 convenience user type. Valid values:
Valid values:
|
Normal |
| Remark |
string |
The description of the convenience user. |
Test user. |
| OrgId |
string |
[Deprecated] The ID of the department to which the convenience user belongs. |
org-4mdgc1cocc59z**** |
| WyId |
string |
The globally unique ID of the convenience user. |
41fd1254d8f7**** |
| IsTenantManager |
boolean |
Indicates whether the user is a user administrator. If the created convenience user is of the administrator-activated type, you must specify a user administrator. Notifications such as password reset notifications sent from the client are sent to the email address or mobile phone number of the user administrator. For more information, see Create a convenience user. |
true |
| Groups |
array<object> |
The collection of user groups to which the convenience user belongs. |
|
|
object |
The properties of the user group to which the convenience user 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 user belongs. |
|
|
object |
The properties of the department to which the convenience user 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 user 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 of the resource policy. |
|
| ExternalName |
string |
The name of the externally imported user. 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 |
Specifies whether to enable administrator access permissions. |
|
| PasswordExpireDays |
integer |
The password validity period, in days. Valid values: 30 to 365. By default, the password is permanently valid. |
30 |
| PasswordExpireRestDays |
integer |
The number of remaining days before the password expires. |
10 |
| UserSource |
string |
The enterprise identity source type of the user. The backend determines whether to query this field based on the display and hide configurations of the custom columns for the enterprise identity source. Valid values: DINGDING (DingTalk), FEISHU (Lark), WECHAT (WeCom), and ENTRA_ID (Microsoft Entra ID). This field is empty if the column is hidden, not configured, or not associated with an enterprise identity source. |
FEISHU |
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,
"UserSource": "FEISHU"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.