🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
>[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" } ```