飞书项目 icon

飞书项目

飞书项目管理 API 集成,支持工作项、空间、用户、工作流等完整功能

Actions75

空间 → 获取空间下团队成员

AI-generated

Overview

This node operation fetches the team members within a specified space (project) in Feishu. It allows users to select a space by project key, and retrieve either all team members or a limited number of them. Additionally, it supports fetching detailed user information for all users across teams in bulk, with options to control request timeout.

Use Case Examples

  1. Retrieve all team members from a specific Feishu space to manage or analyze team composition.
  2. Fetch a limited number of team members from a space for quick overview or reporting.
  3. Automatically fetch detailed user information for all team members in a space to synchronize user data with another system.

Properties

Name Meaning
空间 The space (project) from which to retrieve team members, selectable from a list or by manually entering the project key.
Return All Whether to return all team members or limit the results to a specified number.
Limit Maximum number of team members to return when 'Return All' is false.
获取所有用户详情 Whether to fetch detailed information for all users across teams, deduplicating user keys and querying user info in bulk.
Options Additional options such as request timeout in milliseconds, controlling how long to wait for server response before aborting the request.

Output

JSON

  • teamMembers - Array of team member objects retrieved from the specified space.
  • userDetails - Detailed user information for all users if 'fetchUserDetails' is enabled.

Dependencies

  • Requires Feishu Project API credentials for authentication.

Troubleshooting

  • Ensure the 'project_key' is correctly specified and valid; otherwise, the node will throw an error indicating the space is not found.
  • If 'fetchUserDetails' is enabled, the node may take longer to execute due to bulk user info queries; consider disabling if not needed.
  • Timeout option can be adjusted if requests are timing out; set to 0 for no timeout.
  • Common error messages include '未实现方法' (method not implemented) if the resource-operation combination is incorrect or unsupported.

Discussion