飞书 icon

飞书

飞书 API 集成,支持多种飞书功能

Actions112

通讯录 → 获取子部门列表

AI-generated

Summary

Lists the child departments of a specified Feishu department, optionally fetching all descendant levels recursively. Choose whether to return flat or tree-shaped results when recursion is enabled, and set a result limit or return all results.

Inputs

  • 凭证类型 — Choose user-level OAuth or application-level credentials; application-level credentials are the default.
  • 部门 ID (required) — Department ID to query; defaults to 0 for the root department. Its ID format must match 部门 ID 类型.
  • 用户 ID 类型 — Select the user ID format in the returned data: Open ID, Union ID, or User ID. Defaults to Open ID.
  • 部门 ID 类型 — Select the format of 部门 ID, either Department ID or Open Department ID. Defaults to Open Department ID.
  • 递归获取子部门 — When enabled, recursively queries child departments at all levels. Defaults to false.
  • 数据结构 — Shown when recursion is enabled. Select flat or tree-shaped result data; defaults to flat.
  • Return All — Choose whether to return all results or only up to Limit. Defaults to false.
  • Limit — Maximum results when Return All is false; defaults to 50, with a UI range of 1–50.
  • Options — Optional request timeout in milliseconds; 0 means no timeout.

Output shape

A list of n8n items containing the Feishu API response data for the matching child departments.

Pagination and flat/tree result behavior are controlled by the operation implementation; the supplied source pack does not include this operation's implementation, so it does not establish the exact response fields or whether the selected limit is applied per page or overall.

Links

Discussion