获取互联企业部门成员详情
POST
/cgi-bin/linkedcorp/user/list
服务端API企业内部开发
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'https://qyapi.weixin.qq.com/cgi-bin/linkedcorp/user/list?access_token=' \
--header 'Content-Type: application/json' \
--data-raw '{"department_id":"LINKEDID/DEPARTMENTID","fetch_child":true}'
响应示例响应示例
{
"errcode": 0,
"errmsg": "ok",
"userlist": [
{
"userid": "zhangsan",
"name": "张三",
"department": [
"LINKEDID/1",
"LINKEDID/2"
],
"mobile": "+8612345678901",
"telephone": "10086",
"email": "zhangsan@tencent.com",
"position": "后台开发",
"corpid": "xxxxxx",
"extattr": {
"attrs": [
{
"name": "自定义属性(文本)",
"value": "10086",
"type": 0,
"text": {
"value": "10086"
}
},
{
"name": "自定义属性(网页)",
"type": 1,
"web": {
"url": "https://work.weixin.qq.com/",
"title": "官网"
}
}
]
}
}
]
}
请求参数
Query 参数
access_token
调用接口凭证
示例值:
{{accesstoken}}
Body 参数application/json
返回响应
修改于 2022-01-14 04:25:41