飞书 icon

飞书

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

Actions105

通讯录 → 批量获取用户信息

AI-generated

Summary

Fetches employee information in batch from Feishu Directory using a list of employee IDs. Supports specifying the employee ID type and department ID type in the results. Requires at least one required field to be selected for the response. Supports optional execution options such as batching (enabling concurrent requests) and request timeout.

Inputs

  • 凭证类型 — Select user-level OAuth credentials or application-level credentials; application-level credentials are the default.
  • 用户ID列表 (required) — Employee IDs provided as either a comma-separated string (e.g., "id1,id2,id3") or a JSON array (e.g., ["id1", "id2", "id3"]). Each request supports between 1 and 100 employee IDs.
  • 用户ID类型 — Type of employee ID supplied: Open ID (user identity in an app), Union ID (user identity under a developer), or Employee ID (unique identifier within the enterprise). Defaults to Open ID.
  • 部门ID类型 — Specify the department ID format returned in the results: Open Department ID (unique ID globally in the tenant) or Department ID (user-defined department ID). Defaults to Open Department ID.
  • Options — Optional execution settings. Batching enables parallel concurrent calls with configurable Items per Batch (default 50) and Batch Interval in milliseconds (default 1000 ms, 0 disables interval). Timeout sets the maximum wait time in milliseconds for the server response headers per request, with 0 meaning no timeout.

Output shape

A list of n8n items containing the Feishu API response data for the requested users.

This operation calls the Feishu Directory API endpoint to batch fetch employee information. Requests can specify employee and department ID types and required fields in the response. Up to 100 employee IDs can be queried per request. If batching is enabled, requests will be executed concurrently according to the batch size and interval settings. Request timeout limits the wait time for the server to begin responding. Errors during individual requests will produce items with an error field if Continue On Fail is enabled.

Links

Discussion