curl --location -g --request GET 'https://qyapi.weixin.qq.com/cgi-bin/school/agent/get_allow_scope?access_token=&agentid={{agentid}}'
{
"errcode": 0,
"errmsg": "ok",
"allow_scope": {
"students": [
{
"userid": "student1"
},
{
"userid": "student2"
}
],
"departments": [
1,
2
]
}
}
【企业微信】API开发者 微信交流群
用微信扫右侧二维码,加入【企业微信】API开发者 交流群,互助沟通