Queries DMS user details.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dms:ListUsers |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Tid |
integer |
No |
The tenant ID. Call GetUserActiveTenant to query it. |
3*** |
| Role |
string |
No |
The role assigned to the user. Valid values:
Note
To check your role, hover over your profile picture in the DMS console. |
DBA |
| UserState |
string |
No |
The user status. Valid values:
|
NORMAL |
| SearchKey |
string |
No |
The search keyword. Supports fuzzy matching. |
test |
| PageNumber |
integer |
No |
The page number to return. |
1 |
| PageSize |
integer |
No |
The number of entries per page. Valid values: 10, 20, 50, 100. Default value: 10. |
10 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| TotalCount |
integer |
The total number of users returned. |
3 |
| RequestId |
string |
The request ID. |
69161997-6030-53BA-A333-DBEC83B732FF |
| ErrorCode |
string |
The error code if the request failed. |
InvalidTid |
| ErrorMessage |
string |
The error message if the request failed. |
Specified parameter Tid is not valid. |
| UserList |
object |
||
| User |
array<object> |
The user details. |
|
|
array<object> |
The user details. |
||
| State |
string |
The user status. Valid values:
|
NORMAL |
| CurResultCount |
integer |
The number of rows queried today. |
0 |
| UserId |
string |
The user ID. |
8**** |
| LastLoginTime |
string |
The last time the user logged in to the DMS console. |
2021-11-08 13:43:43 |
| MaxResultCount |
integer |
The maximum number of rows that can be queried today. |
50000 |
| ParentUid |
string |
The Alibaba Cloud account ID of the user. |
140692647406**** |
| RoleIdList |
object |
||
| RoleIds |
array |
The role IDs. |
|
|
integer |
The role ID assigned to the user. Valid values:
|
3 |
|
| RoleNameList |
object |
||
| RoleNames |
array |
The role names. |
|
|
string |
The role name assigned to the user. Valid values:
|
ADMIN |
|
| NickName |
string |
The user nickname. |
test_NickName |
| MaxExecuteCount |
integer |
The maximum number of queries allowed today. |
2000 |
| CurExecuteCount |
integer |
The number of queries performed today. |
0 |
| Mobile |
string |
The user's mobile number. Note
|
1389999**** |
| Uid |
string |
The Alibaba Cloud account ID. |
167382665015**** |
|
string |
The notification email address. Note
|
username@example.com |
|
| DingRobot |
string |
The DingTalk chatbot URL for notifications. Note
|
https://XXX.dingtalk.com/robot/send?access_token=9b7a4a562cbe7fcdea9962afac7b9d7b4504d564948083419750f9cafa78e4ef |
| Webhook |
string |
The webhook URL for notifications. Note
|
http://dms-XXX.aliyun.com:8*** |
| SignatureMethod |
string |
The signature method for webhook connections. Valid values:
|
HMAC_SHA1 |
| NotificationMode |
string |
The notification method. One or more values may be returned. Valid values:
|
DINGROBOT |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
Examples
Success response
JSON format
{
"TotalCount": 3,
"RequestId": "69161997-6030-53BA-A333-DBEC83B732FF",
"ErrorCode": "InvalidTid",
"ErrorMessage": "Specified parameter Tid is not valid.",
"UserList": {
"User": [
{
"State": "NORMAL",
"CurResultCount": 0,
"UserId": "8****",
"LastLoginTime": "2021-11-08 13:43:43",
"MaxResultCount": 50000,
"ParentUid": "140692647406****",
"RoleIdList": {
"RoleIds": [
3
]
},
"RoleNameList": {
"RoleNames": [
"ADMIN"
]
},
"NickName": "test_NickName",
"MaxExecuteCount": 2000,
"CurExecuteCount": 0,
"Mobile": "1389999****",
"Uid": "167382665015****",
"Email": "username@example.com",
"DingRobot": "https://XXX.dingtalk.com/robot/send?access_token=9b7a4a562cbe7fcdea9962afac7b9d7b4504d564948083419750f9cafa78e4ef",
"Webhook": "http://dms-XXX.aliyun.com:8***",
"SignatureMethod": "HMAC_SHA1",
"NotificationMode": "DINGROBOT"
}
]
},
"Success": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.