FilterUsers
Queries convenience account information by using a filtered query based on user property.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecd:FilterUsers |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| MaxResults |
integer |
No |
The number of rows to return per page during paging in a paged query. If the value is greater than 100, it is automatically reset to 100. |
10 |
| NextToken |
string |
No |
The pagination token for the next query. You do not need to specify this parameter when you call the operation for the first time. If a single call does not return all results, the returned NextToken is not empty. You can use the returned NextToken in subsequent calls to continue the query. |
caeba0bbb2be03f84eb48b699f0a**** |
| Filter |
string |
No |
The fuzzy search string. It supports matching the username (EndUserId) and email address (Email). This field supports wildcards (*). For example, if you set this field to a*m, all results where the username or email address starts with a and ends with m are returned. |
a*m |
| PropertyFilterParam |
array<object> |
No |
The list of user properties to use for fuzzy queries. |
|
|
object |
No |
The user property to use for the fuzzy query. |
||
| PropertyId |
integer |
No |
The property ID. |
328 |
| PropertyValueIds |
string |
No |
The IDs of the property values. |
1255 |
| PropertyKeyValueFilterParam |
array<object> |
No |
The list of property names and property values. |
|
|
object |
No |
The property name and property value. |
||
| PropertyKey |
string |
No |
The property name. |
job |
| PropertyValues |
string |
No |
The property values. |
dev |
| IncludeDesktopCount |
boolean |
No |
Specifies whether to return the number of cloud computers assigned to the user. Valid values:
|
true |
| IncludeDesktopGroupCount |
boolean |
No |
Specifies whether to return the number of cloud computer pools assigned to the user. Valid values:
|
false |
| OrgId |
string |
No |
The enterprise organization ID. |
org-aliyun-wy-org-id |
| OwnerType |
string |
No |
The account activation type. Valid values:
|
Normal |
| IncludeEndUserIds |
array |
No |
The list of convenience account usernames to include in the query results. |
|
|
string |
No |
The convenience account username to include in the query results. |
alice |
|
| ExcludeEndUserIds |
array |
No |
The list of usernames (EndUserIds) to exactly exclude. |
|
|
string |
No |
The username (EndUserId) to exactly exclude. The query returns a list of users that do not include this username. |
tony |
|
| OrderParam |
object |
No |
The supported sorting parameters. |
|
| OrderField |
string |
No |
The field by which to sort. Valid values:
|
id |
| OrderType |
string |
No |
The sort order. Valid values:
|
DESC |
| Status |
integer |
No |
The user status to filter by. Valid values:
|
0 |
| IsQueryAllSubOrgs |
boolean |
No |
Specifies whether to query all sub-organizations. |
|
| IncludeOrgInfo |
boolean |
No |
Specifies whether to include organization information. |
|
| IncludeSupportIdps |
boolean |
No |
Specifies whether to include supported logon types. |
|
| BusinessChannel |
string |
No |
The channel. |
ENTERPRISE |
| FilterMap |
object |
No |
The fuzzy match condition map for user information. It supports fields such as username, remarks, phone number, email address, nickname, and employee ID. |
|
|
string |
No |
The fuzzy match text for the corresponding filter field. |
alice |
|
| ShowExtras |
object |
No |
The switch map for additional returned information. This parameter controls whether to display desktop policy information. |
|
|
string |
No |
Specifies whether to display the corresponding additional information. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The collection of response information. |
||
| RequestId |
string |
The request ID. |
1CBAFFAB-B697-4049-A9B1-67E1FC5F**** |
| NextToken |
string |
The token for the next query. If a single query does not return all results, the returned NextToken is not empty. You can pass the returned NextToken in a subsequent query to continue the query. |
caeba0bbb2be03f84eb48b699f0a**** |
| Users |
array<object> |
The collection of convenience user information. |
|
|
array<object> |
The convenience user information. |
||
| Id |
integer |
The user ID. |
4205** |
| EndUserId |
string |
The username. |
alice |
|
string |
The email address. |
username@example.com |
|
| Phone |
string |
The mobile phone number. |
1381111**** |
| Status |
integer |
The status of the convenience user. Valid values:
|
0 |
| UserSetPropertiesModels |
array<object> |
The collection of user properties. |
|
|
array<object> |
The user property. |
||
| UserId |
integer |
The ID of the user to which the property is bound. |
4205** |
| UserName |
string |
The username of the user to which the property is bound. |
alice |
| PropertyId |
integer |
The user property ID. |
12 |
| PropertyKey |
string |
The user property name. |
department |
| PropertyType |
integer |
The user property number. |
2 |
| PropertyValues |
array<object> |
The user property value. |
|
|
object |
The user property value. |
||
| PropertyValueId |
integer |
The user property value ID. |
42 |
| PropertyValue |
string |
The user property value. |
dev |
| DesktopCount |
integer |
The number of cloud computers assigned to the user. |
1 |
| ExternalInfo |
object |
The extended user information. |
|
| ExternalName |
string |
The name of the external account associated with the user. |
account |
| JobNumber |
string |
The account, student ID, or employee ID associated with the user. |
030801 |
| DesktopGroupCount |
integer |
The number of cloud computer pools authorized for the user. This value is returned when |
2 |
| OwnerType |
string |
The ownership type of the account. Valid values:
|
Normal |
| Remark |
string |
The remarks for the user. |
For testing only |
| IsTenantManager |
boolean |
Indicates whether the user is a tenant administrator. Valid values:
|
true |
| EnableAdminAccess |
boolean |
Indicates whether the user is a local administrator. Valid values:
|
true |
| RealNickName |
string |
The user nickname. |
Xiaoming |
| AutoLockTime |
string |
The date when the account is automatically locked, in the YYYY-MM-DD format. |
2023-03-03 |
| PasswordExpireDays |
integer |
The password of the user account is valid permanently by default. You can use this parameter to set a password validity period of 30 to 365 days. After the password expires, the end user must change the password before logging on again. Note
This feature is in invitational preview. To use this feature, submit a ticket. |
30 |
| PasswordExpireRestDays |
integer |
The number of remaining days before the account password expires. |
10 |
| OrgList |
array<object> |
The list of organizations to which the user belongs. |
|
|
object |
The list of organizations to which the user belongs. |
||
| OrgId |
string |
The organizational structure ID. |
org-1mox**** |
| OrgName |
string |
The organizational structure name. |
Design Department |
| OrgNamePath |
string |
The organizational structure name path. |
Product Department/Design Department |
| SupportLoginIdps |
array<object> |
The supported identity sources for logon. |
|
|
object |
The supported identity sources for logon. |
||
| IdpId |
string |
The enterprise identity source ID. |
idp-hlyexfvwert9m8**** |
| IdpName |
string |
The enterprise identity source name. |
DingTalk |
| UserSource |
string |
The enterprise identity source type of the user source. The backend determines whether to query this field based on the show or hide configuration of the custom column for the enterprise identity source. Valid values: DINGDING (DingTalk), FEISHU (Lark), WECHAT (WeCom), and ENTRA_ID (Microsoft Entra ID). This field is empty when the column is hidden, not configured, or not associated with an enterprise identity source. |
FEISHU |
| Groups |
array<object> |
The list of user groups to which the convenience user belongs. |
|
|
object |
The user group to which the convenience user belongs. |
||
| GroupId |
string |
The user group ID. |
ug-2412ojkwtybd**** |
| GroupName |
string |
The user group name. |
TestGroup |
| ResourcePolicyList |
array<object> |
The list of resource policies associated with the convenience user. |
|
|
object |
The resource policy associated with the convenience user. |
||
| PolicyId |
string |
The resource policy ID. |
|
| PolicyName |
string |
The resource policy name. |
Examples
Success response
JSON format
{
"RequestId": "1CBAFFAB-B697-4049-A9B1-67E1FC5F****",
"NextToken": "caeba0bbb2be03f84eb48b699f0a****",
"Users": [
{
"Id": 0,
"EndUserId": "alice",
"Email": "username@example.com",
"Phone": "1381111****",
"Status": 0,
"UserSetPropertiesModels": [
{
"UserId": 0,
"UserName": "alice",
"PropertyId": 12,
"PropertyKey": "department",
"PropertyType": 2,
"PropertyValues": [
{
"PropertyValueId": 42,
"PropertyValue": "dev"
}
]
}
],
"DesktopCount": 1,
"ExternalInfo": {
"ExternalName": "account",
"JobNumber": "030801"
},
"DesktopGroupCount": 2,
"OwnerType": "Normal",
"Remark": "For testing only",
"IsTenantManager": true,
"EnableAdminAccess": true,
"RealNickName": "Xiaoming",
"AutoLockTime": "2023-03-03",
"PasswordExpireDays": 30,
"PasswordExpireRestDays": 10,
"OrgList": [
{
"OrgId": "org-1mox****",
"OrgName": "Design Department",
"OrgNamePath": "Product Department/Design Department"
}
],
"SupportLoginIdps": [
{
"IdpId": "idp-hlyexfvwert9m8****",
"IdpName": "DingTalk"
}
],
"UserSource": "FEISHU",
"Groups": [
{
"GroupId": "ug-2412ojkwtybd****",
"GroupName": "TestGroup"
}
],
"ResourcePolicyList": [
{
"PolicyId": "",
"PolicyName": ""
}
]
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.