lark-task-tasklist-members.md 1.2 KB

task +tasklist-members

Prerequisites: Please read ../lark-shared/SKILL.md to understand authentication, global parameters, and security rules.

Manage tasklist members (editors/owners).

Recommended Commands

# Add a member
lark-cli task +tasklist-members --tasklist-id "tl_xxx" --add "ou_aaa"

# Remove a member
lark-cli task +tasklist-members --tasklist-id "tl_xxx" --remove "ou_aaa"

# Replace all members exactly
lark-cli task +tasklist-members --tasklist-id "tl_xxx" --set "ou_aaa,ou_bbb"

Parameters

Parameter Required Description
--tasklist-id <id> Yes The GUID of the tasklist, or a full AppLink URL.
--add <ids> No Comma-separated list of user open_ids to add as members.
--remove <ids> No Comma-separated list of user open_ids to remove from members.
--set <ids> No Comma-separated list of user open_ids to exactly set as members (replaces all existing).

Workflow

  1. Confirm the tasklist and members to add/remove/set.
  2. Execute the command.
  3. Report success.

[!CAUTION] This is a Write Operation -- You must confirm the user's intent before executing.