Queries the details of a specific user.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dms:GetUser |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Tid |
integer |
No |
The tenant ID. Call GetUserActiveTenant to obtain this value. |
3*** |
| Uid |
string |
No |
The Alibaba Cloud account UID. To view your UID, hover over the profile picture in the upper-right corner of the DMS console. |
22973492647626**** |
| UserId |
string |
No |
The user ID. Call ListUsers to obtain this value. |
51**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| User |
object |
The user details. |
|
| State |
string |
The user status. Valid values:
|
NORMAL |
| CurResultCount |
integer |
Rows queried today. |
28 |
| UserId |
string |
The user ID. |
51**** |
| LastLoginTime |
string |
Last console login time. |
2021-11-08 11:26:21 |
| MaxResultCount |
integer |
Maximum queryable rows per day. |
10000 |
| ParentUid |
integer |
UID of the parent Alibaba Cloud account. Note
An Alibaba Cloud account can contain one or more RAM users. |
140692647406**** |
| RoleIdList |
object |
||
| RoleIds |
array |
The role IDs. |
|
|
integer |
The user's role ID. Valid values:
|
1 |
|
| RoleNameList |
object |
||
| RoleNames |
array |
The role names. |
|
|
string |
The user's role name. Valid values:
|
USER |
|
| NickName |
string |
The user nickname. |
User_NickName |
| MaxExecuteCount |
integer |
Maximum queries allowed per day. |
2000 |
| CurExecuteCount |
integer |
Queries performed today. |
3 |
| Mobile |
string |
The user's mobile number. Note
|
1389223**** |
| Uid |
string |
The UID of the user. |
22275482072787**** |
|
string |
The user's notification email address. Note
|
Uesr_email |
|
| DingRobot |
string |
The DingTalk chatbot webhook URL. Note
|
https://XXX.dingtalk.com/robot/send?access_token=*** |
| Webhook |
string |
The webhook URL for notifications. Note
|
http://dms-XXX.aliyun.com:8*** |
| SignatureMethod |
string |
Signature method for webhook connections. Valid values:
|
NONE |
| NotificationMode |
string |
Notification method. Multiple values may be returned. Valid values:
|
|
| RequestId |
string |
The request ID. |
804BB128-CAFA-5DD0-BA1E-43DDE488**** |
| ErrorCode |
string |
The error code. |
UnknownError |
| ErrorMessage |
string |
Error message returned on failure. |
Unknown server error |
| Success |
boolean |
Whether the request succeeded. Valid values:
|
true |
Examples
Success response
JSON format
{
"User": {
"State": "NORMAL",
"CurResultCount": 28,
"UserId": "51****",
"LastLoginTime": "2021-11-08 11:26:21",
"MaxResultCount": 10000,
"ParentUid": 0,
"RoleIdList": {
"RoleIds": [
1
]
},
"RoleNameList": {
"RoleNames": [
"USER"
]
},
"NickName": "User_NickName",
"MaxExecuteCount": 2000,
"CurExecuteCount": 3,
"Mobile": "1389223****",
"Uid": "22275482072787****",
"Email": "Uesr_email",
"DingRobot": "https://XXX.dingtalk.com/robot/send?access_token=***",
"Webhook": "http://dms-XXX.aliyun.com:8***",
"SignatureMethod": "NONE",
"NotificationMode": "EMAIL"
},
"RequestId": "804BB128-CAFA-5DD0-BA1E-43DDE488****",
"ErrorCode": "UnknownError",
"ErrorMessage": "Unknown server error",
"Success": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.