> ## Documentation Index
> Fetch the complete documentation index at: https://rpa.bazhuayu.com/helpcenter/llms.txt
> Use this file to discover all available pages before exploring further.

# 部门管理-获取部门列表

**指令输入说明：**

access\_token:通过【初始化-获取access\_token】指令获取参数

只能拉取token对应的应用的权限范围内的部门列表

id:获取指定部门及其下的子部门（以及子部门的子部门等等，递归）。

如果不填，默认获取全量组织架构

![image](https://mintcdn.com/bazhuayu-rpa-docs/3T28-M3CPw0yKoKf/helpcenter/commands/custom-commands/IPzFl8Q0/images/zTbfodbl-01.png?fit=max\&auto=format\&n=3T28-M3CPw0yKoKf\&q=85\&s=cee6eeb6c9200345a09cba8d1f388d27)

![image](https://mintcdn.com/bazhuayu-rpa-docs/3T28-M3CPw0yKoKf/helpcenter/commands/custom-commands/IPzFl8Q0/images/zTbfodbl-02.png?fit=max\&auto=format\&n=3T28-M3CPw0yKoKf\&q=85\&s=61b5e9efb8737b548eb4a26c96314354)

> [!NOTE]
>
> 使用指令过程中遇到问题？前往 [八爪鱼RPA 开发者社区问答板块](https://rpa.bazhuayu.com/community/questions) 提问，获取官方与社区帮助。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.