# 查询用户绑定列表

[调试诊断](https://developers.weixin.qq.com/console/devtools/debug?utm_source=api_tools)

> 接口应在服务器端调用，不可在前端（小程序、网页、APP等）直接调用，具体可参考[接口调用指南](/doc/oplatform/developers/dev/guide.md)。

接口英文名：weDataQueryBindList

查询用户绑定列表

## 1. 调用方式

### HTTPS 调用

```bash
POST https://api.weixin.qq.com/wedata/wedata_query_bind_list?access_token=ACCESS_TOKEN
```

### 云调用

- 本接口不支持云调用。

### 第三方调用

- 本接口支持第三方平台代商家调用。

- 该接口所属的权限集 id 为：18

- 服务商获得其中之一权限集授权后，可通过使用 [authorizer_access_token](/doc/oplatform/developers/dev/AuthorizerAccessToken.md) 代商家进行调用，具体可查看 [第三方调用](/doc/oplatform/Third-party_Platforms/2.0/Before_Develop/call_interface.md) 说明文档。

## 2. 请求参数

### 查询参数 `Query String Parameters`

```json
[
  {
    "参数名": "access_token",
    "类型": "string",
    "必填": "是",
    "说明": "接口调用凭证，可使用 [authorizer_access_token](/doc/oplatform/openApi/ticket-token/api_getauthorizeraccesstoken)"
  }
]
```

### 请求体 `Request Payload`

无

## 3. 返回参数

### 返回体 `Response Payload`

```json
[
  {
    "参数名": "errcode",
    "类型": "number",
    "说明": "错误码"
  },
  {
    "参数名": "errmsg",
    "类型": "string",
    "说明": "错误信息"
  },
  {
    "参数名": "info",
    "类型": "objarray",
    "说明": "用户绑定信息"
  }
]
```

">

### Res.info(Array) `Object Payload`

用户绑定信息

```json
[
  {
    "参数名": "uid",
    "类型": "string",
    "说明": "用户在服务商系统的唯一标识，可以是手机号、邮箱、员工ID 等等。"
  },
  {
    "参数名": "create_time",
    "类型": "number",
    "说明": "创建时间（uinx时间戳，单位为秒）"
  },
  {
    "参数名": "update_time",
    "类型": "number",
    "说明": "更新时间（uinx时间戳，单位为秒）"
  },
  {
    "参数名": "nickname",
    "类型": "string",
    "说明": "用户微信昵称"
  },
  {
    "参数名": "head_url",
    "类型": "string",
    "说明": "用户微信头像url"
  },
  {
    "参数名": "is_bind",
    "类型": "number",
    "说明": "uid是否绑定了微信号"
  },
  {
    "参数名": "perm",
    "类型": "objarray",
    "说明": "用户权限集"
  }
]
```

__perm">

### Res.info(Array).perm `Object Payload`

用户权限集

```json
[
  {
    "参数名": "perm_id",
    "类型": "string",
    "说明": "权限集id"
  },
  {
    "参数名": "name",
    "类型": "string",
    "说明": "权限集名称"
  },
  {
    "参数名": "desc",
    "类型": "string",
    "说明": "权限集描述"
  }
]
```

## 4. 注意事项

本接口无特殊注意事项

## 5. 代码示例

请求示例

```
POST https://api.weixin.qq.com/wedata/wedata_query_bind_list?access_token=ACCESS_TOKEN
```

返回示例

```json
{
  "errcode": 0,
  "errmsg": "OK",
  "info": [
    {
      "uid": "test",
      "create_time": 1663728070,
      "update_time": 1663728119,
      "nickname": "xxx",
      "head_url": "http://wx.qlogo.cn/mmhead/xxxxxxxxxxxxxxxxxxxxxxx",
      "is_bind": 1,
      "perm": [
        {
          "perm_id": "10001",
          "name": "全站只读权限",
          "desc": "具备所有模块的“查看”权限。但没有“创建”、“编辑”、“下载”、“删除”的权限"
        }
      ]
    },
    {
      "uid": "example",
      "create_time": 1663664719,
      "update_time": 1663664941,
      "is_bind": 0
    }
  ]
}
```

## 6. 错误码

以下是本接口的错误码列表，其他错误码可参考 [通用错误码](/doc/oplatform/developers/errCode/README.md)；调用接口遇到报错，可使用官方提供的 [API 诊断工具](https://developers.weixin.qq.com/console/devtools/debug?utm_source=api_errcode) 辅助定位和分析问题。

```json
[
  {
    "错误码": "-1",
    "错误描述": "system error",
    "解决方案": "系统繁忙，此时请开发者稍候再试"
  }
]
```

## 7. 适用范围

本接口支持「第三方平台」账号类型代调用，权限集请参考「调用方式」部分。其他账号类型如无特殊说明，均不可调用。
