Obtains user information.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | GetUser |
The operation that you want to perform. Set the value to GetUser. |
Tid | Long | Yes | -1 |
The ID of the tenant. Note
The tenant ID is
taken from the tenant ID displayed when you move the pointer on your profile picture.
For more information, see
View tenant information
.
|
Uid | Long | No | 123344235 |
The Alibaba Cloud Uid of the user. |
UserId | String | No | 1343 |
The ID of the user account. |
RegionId | String | No | cn-hangzhou |
Region-based API request parameters. |
Response parameters
Parameter | Type | Sample response | Description |
---|---|---|---|
ErrorCode | String | UnknownError |
The error codes. |
ErrorMessage | String | UnknownError |
The error message of the failure. |
RequestId | String | CFF30064-5985-4ACB-B3F9-9557596913C8 |
The ID of the request. |
Success | Boolean | true |
Indicates whether the call was successful. |
User | Struct |
The information about the RAM user. |
|
CurExecuteCount | Long | 0 |
Number of queries of the current day. |
CurResultCount | Long | 0 |
The number of rows queried in the current day. |
LastLoginTime | String | 2020-02-02 00:00:00 |
The last logon time. |
MaxExecuteCount | Long | 1000 |
Maximum number of queries per day. |
MaxResultCount | Long | 1000 |
Maximum number of queried rows of the current day. |
Mobile | String | 138xxxxxxxx |
The mobile phone number of the user. |
NickName | String | nickName |
The nickname of the user. |
ParentUid | Long | 12345352 |
The Alibaba Cloud Uid of the primary account. |
RoleIdList | List | 1 |
The list of role IDs. |
RoleNameList | List | Manage permissions as a common user |
The list of roles. |
State | String | NORMAL |
The user status. |
Uid | Long | 1243215435 |
The Alibaba Cloud Uid of the user. |
UserId | String | 122 |
The ID of the user account. |
Examples
Sample request
http(s)://[Endpoint]/? Action=GetUser &Tid=-1 &<common request parameters>
Sample success responses
XML
format
Other common user </RoleNames> <RoleNames> security administrator </RoleNames> <RoleNames> Administrator </RoleNames> <RoleNames> DBA </RoleNames> </RoleNameList> <NickName> xxx </NickName> <ParentUid> 114324325 </ParentUid> <UserId> 432143 </UserId> <Uid> 41234234324 </Uid> </User> <RequestId> CFF30064-5985-4 ACB-B3F9-9557596913C8 </RequestId> <Success> true </Success>
JSON
{"User": { "RoleIdList": { "RoleIds": [ 1, 4, 3, 2 ] }, "State": "NORMAL", "RoleNameList": { "RoleNames": [ "common user", "security administrator", "administrator", "DBA" ] }, "NickName": "xxx", " ParentUid": "114324325", "UserId": 432143, "Uid": "41234234324" }, "RequestId": "CFF30064-5985-4ACB-B3F9-9557596913C8", "Success": true}
Error codes
For more information about error codes, see error center.