跳到主要内容

获取不在部门的成员

调用本接口,获取不在部门的成员


权限说明

「超管accessToken」和「权限组accessToken」都可以调用,「权限组accessToken」须具有通讯录权限。

请求

**请求方式:**GET

**请求地址:**https://api.qingflow.com/user/undeparted(公有云版本)

示例如下:

POST https://api.qingflow.com/user/undeparted

其他版本请求地址:

钉钉版本:https://api.ding.qingflow.com/user/undeparted

专有轻流:http(s)://xxx.xx(自有域名)/openApi/user/undeparted

请求头(Header)

参数必须说明
accessToken调用接口凭证。获取方法请查看“文档”

返回

返回体

参数必含类型说明
errCodeint错误码,非0表示失败
errMsgstring错误描述
questionRelations关联的设置,这里没用
resultobject返回结果
leaderIdsint
userListstring
areaCode
beingActiveboolean用户的激活状态
beingDisabledboolean是否禁用成员
customDepartmentarray自建部门id列表(仅企业微信/钉钉/飞书等特殊工作区适用)
customRolearray自建角色id列表(仅企业微信/钉钉/飞书等特殊工作区适用)
departmentarray部门id列表
emailstring邮箱
headImgstring头像
mobileNumstring手机号
namestring用户名
optionIdint
rolearray角色id列表
userIdstring

返回体示例

{
"errCode": 0,
"errMsg": null,
"questionRelations": [],
"result": {
"leaderIds": [],
"userList": [
{
"areaCode": "86",
"beingActive": true,
"beingDisabled": false,
"customDepartment": [],
"customRole": [],
"department": [],
"email": "972653884@qq.com",
"headImg": "https://file.qingflow.com/uploads/file/8ca3c4729-ab79-6e1db6c9.jpg",
"mobileNum": "15075983456",
"name": "轻流-陆",
"optionId": 289260,
"role": [],
"userId": "289260"
},
{
"areaCode": "86",
"beingActive": false,
"beingDisabled": false,
"customDepartment": [],
"customRole": [],
"department": [],
"email": "999973412@qq.com",
"headImg": null,
"mobileNum": null,
"name": null,
"optionId": 873745,
"role": [],
"userId": "873745"
}
]
}
}