多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
>[info] 获取指定部门的所有父部门列表 调用本接口获取指定部门的所有父部门ID列表。 **官方文档地址:** [链接](https://open.dingtalk.com/document/orgapp-server/query-the-list-of-all-parent-departments-of-a-department) * 代码: ~~~ $dept_id = 808357313; $res = Department::listparentbydept($dept_id); echo($res); ~~~ * 返回: ``` { "errcode": 0, "errmsg": "ok", "result": { "parent_id_list": [ 808357313, 1 ] }, "request_id": "15rk6m1hx86ax" } ```