Wechat Work Node icon

Wechat Work Node

Wechat Work Node

用户管理 → 获取成员ID列表

AI-generated

Summary

Retrieve a paginated list of enterprise members' user IDs along with their associated department IDs from WeChat Work.

Inputs

  • 游标 — A string cursor used for paginated queries, obtained from the previous call. Leave empty for the first request.
  • 分页大小 — An integer specifying the page size for the query, with a minimum of 1 and a maximum of 10,000, defaulting to 50.

Output shape

A JSON object containing the list of user IDs and their corresponding department IDs, potentially paginated with a cursor for further requests.

The response JSON includes fields like 'useridlist' and 'department' arrays and a 'next_cursor' for pagination. Handle pagination by supplying the returned cursor in subsequent requests' cursor parameter.

Examples

Example 1: Fetch first 50 members' user IDs

No cursor, Page size set at default 50

Example 2: Fetch next page of members

Set cursor to the 'next_cursor' value returned from previous call, specify page size if desired

Links

Discussion