list_users_by_department
List all members in a WeCom department by department ID, optionally including sub-departments, returning each user's name and UserID.
Instructions
列出部门成员 (仅返回姓名 + UserID)。
Args: department_id: 部门 ID,0=根部门 (全部成员) fetch_child: 是否递归子部门
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fetch_child | No | ||
| department_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |