获取部门成员详情
GET
https://qyapi.weixin.qq.com/cgi-bin/school/user/list
服务端API第三方应用开发企业内部开发
原文档地址:
https://open.work.weixin.qq.com/api/doc/90001/90143/92043
https://open.work.weixin.qq.com/api/doc/90000/90135/92338
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request GET 'https://qyapi.weixin.qq.com/cgi-bin/school/user/list?department_id={{department_id}}&access_token={{access_token}}'
响应示例响应示例
{
"errcode": 0,
"errmsg": "ok",
"students": [
{
"student_userid": "zhangsan",
"name": "张三",
"department": [
1,
2
],
"parents": [
{
"parent_userid": "zhangsan_parent1",
"relation": "爸爸",
"mobile": "18000000001",
"is_subscribe": 1,
"external_userid": "xxx"
},
{
"parent_userid": "zhangsan_parent2",
"relation": "妈妈",
"mobile": "18000000002",
"is_subscribe": 0
}
]
},
{
"student_userid": "lisi",
"name": "李四",
"department": [
4,
5
],
"parents": [
{
"parent_userid": "lisi_parent1",
"relation": "爷爷",
"mobile": "18000000003",
"is_subscribe": 1,
"external_userid": "xxx"
},
{
"parent_userid": "lisi_parent2",
"relation": "妈妈",
"mobile": "18000000004",
"is_subscribe": 1,
"external_userid": "xxx"
}
]
}
]
}
请求参数
Query 参数
department_id
获取的部门id
示例值:
{{department_id}}
access_token
调用接口凭证
示例值:
{{access_token}}
返回响应
修改于 2022-12-02 02:59:59