飞书 icon

飞书

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

Actions105

群组管理 → 搜索对用户或机器人可见的群列表

AI-generated

Summary

Searches the list of group chats that are visible to a specified user or bot in Feishu, filtered by a keyword supporting multi-language fuzzy search on group international names and member names.

Inputs

  • 凭证类型 (required) — Specifies the type of credential to use for authentication: user-level or application-level.
  • 关键词 (required) — Keyword for searching groups. Supports matching group international names and group member names with multi-language, pinyin, prefix, and fuzzy matching. Empty or overly long keywords return empty results. Avoid '-' unless enclosed in double quotes.
  • 用户ID类型 — Specifies the type of user ID to use when identifying the user (Open ID, Union ID, or User ID).
  • Return All — Whether to return all results or limit by count.
  • Limit — Maximum number of groups to return when 'Return All' is false, between 1 and 100.
  • Timeout — Milliseconds to wait for the server's response before aborting the request; 0 means no timeout.

Output shape

a list of group chat records visible to the specified user or bot, matching the search keyword

The results respect pagination and can be limited by the 'Return All' and 'Limit' inputs. If the search keyword is empty or exceeds 64 characters, the result list will be empty.

Examples

Example 1: Search with application-level credentials for groups with keyword 'Project' visible to a user identified by Open ID

Set credential type to application-level, enter 'Project' as the keyword, and specify user ID type as Open ID.

Links

Discussion