Queries the information about a user.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request syntax
POST /v2/user/get HTTP/1.1
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| body | object | No | The request parameters. | |
| user_id | string | No | The user ID. If you use an AccessKey pair to access Drive and Photo Service, you must specify this parameter. If you use an access token to access Drive and Photo Service, you do not need to specify this parameter, and Drive and Photo Service automatically finds the user ID contained in the access token. | c9b7a5aa04d14ae3867fdc886fa01da4 |
Response parameters
Examples
Sample success responses
JSONformat
{
"domain_id": "bj1",
"user_id": "c9b7a5aa04d14ae3867fdc886fa01da4",
"avatar": "http://aa.com/1.jpg",
"created_at": 1639762579768,
"updated_at": 1639762579768,
"email": "a@aliyunpds.com",
"nick_name": "001",
"phone": 13900001111,
"role": "user",
"status": "enabled",
"user_name": "pds",
"description": "vipuser",
"default_drive_id": 1,
"user_data": {
"key": ""
},
"creator": "user1",
"punishments": [
{
"punish_flag": 0,
"starts_at": "",
"ends_at": "",
"impermanent": true
}
],
"is_sync": true
}Error codes
For a list of error codes, visit the Service error codes.
