Actions28
组织与部门管理 → 获取部门成员列表
AI-generatedSummary
Lists members of a specified department in an organization, with optional pagination, child-department inclusion, sorting, and extra member data.
Inputs
- organizationCode (required) — Unique code of the organization.
- departmentId (required) — Department identifier; use
rootfor the root department. - returnAll — When true, returns all available results. Defaults to false.
- limit — Maximum number of results when Return All is false; defaults to 50.
- options.departmentIdType — Type of department ID supplied: code, custom_field, department_id, open_department_id, or sync_relation. Defaults to department_id.
- options.includeChildrenDepartments — Whether to include members from child departments. Defaults to false.
- options.tenantId — Tenant ID.
- options.sortBy — Field used to sort results: createAt, JoinDepartmentAt, updatedAt, userId, or Default. Defaults to Default.
- options.orderBy — Sort order, Asc or Desc. Defaults to Desc.
- options.withCustomData — Whether to include custom data. Defaults to false.
- options.withIdentities — Whether to include identities. Defaults to false.
- options.withDepartmentIds — Whether to include the department ID list. Defaults to false.
Output shape
A list of member records as n8n items.
The node exposes one main output. The source pack does not include this operation's handler, so the exact member record fields and pagination behavior cannot be confirmed.