All Products
Search
Document Center

Drive and Photo Service:SearchUser

Last Updated:Aug 04, 2025

Searches for users.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request syntax

POST /v2/user/search HTTP/1.1

Request parameters

ParameterTypeRequiredDescriptionExample
bodyobjectNo

The request parameters.

nick_namestringNo

The nickname of the user. The nickname can be up to 128 characters in length.

pdsuer
nick_name_for_fuzzystringNo

The nickname used for fuzzy searches. The nickname can be up to 128 characters in length.

la
user_namestringNo

The name of the user. The name can be up to 128 characters in length.

pds
phonestringNo

The mobile number of the user.

13900001111
emailstringNo

The email address of the user.

123@pds.com
statusstringNo

The state of the user. Valid values:

  • disabled: The user is prohibited from logon.
  • enabled: The user is in a normal state.
enabled
rolestringNo

The role of the user. Valid values:

  • superadmin
  • admin
  • user
user
markerstringNo

The pagination token that is used in the next request to retrieve a new page of results. You do not need to specify this parameter for the first request. You must specify the token that is obtained from the previous query as the value of marker.
By default, this parameter is left empty.

NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg
limitintegerNo

The maximum number of results to return. Valid values: 1 to 100. Default value: 100.

100

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

next_markerstring

A pagination token. It can be used in the next request to retrieve a new page of results. If next_marker is empty, no next page exists.

NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg
itemsarray

The information about the users.

User

The information about a user.

Examples

Sample success responses

JSONformat

{
  "next_marker": "NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg",
  "items": [
    {
      "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.