飞书 icon

飞书

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

Actions105

组织架构 → 批量获取员工信息

AI-generated

Summary

Fetch multiple employees' information from the organization's directory by specifying their IDs and desired data fields, supporting user- or application-level authentication and optional batching to manage request concurrency.

Inputs

  • 凭证类型 (required) — Credential type to use: user-level or application-level token.
  • 员工 ID 列表 (required) — List of employee IDs to query, either as comma-separated string or JSON array, with 1 to 100 IDs per request.
  • 员工 ID 类型 (required) — Type of employee ID provided: Open ID, Union ID, or Employee ID.
  • 部门 ID 类型 (required) — Department ID type used in this call: Open Department ID or Department ID.
  • 查询字段 (required) — Fields of employee information to return, chosen from detailed available fields; at least one field must be specified.
  • Options — Optional controls including batching parameters (items per batch and batch interval in ms) for concurrent requests, and timeout in milliseconds to wait for server response header before aborting.

Output shape

a list containing employee data objects with requested fields populated

Supports batching if enabled, which controls concurrency and pacing of multiple requests, returning combined results. Errors during individual item requests populate error messages per item if 'continue on fail' is enabled.

Examples

Example 1: Retrieve data for up to 100 employees given a list of Open IDs, fetching their basic info fields (e.g., employee ID and name), using an application-level credential.

Set authentication to application-level, specify employee IDs as comma-separated string or JSON array, choose Open ID as employee ID type, select required fields from the provided list, and optionally enable batching with default concurrency and intervals.

Links

Discussion