> ## Documentation Index
> Fetch the complete documentation index at: https://docs.macro.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ManageChannelParticipants

> Add or remove members of an existing channel. Requires the current user to be a channel member. Direct-message channels cannot change membership. The channel owner cannot be removed. Participants accept `macro|<email>` ids from ListTeamMembers or bare emails. Use `add` to invite people and `remove` to take them out. Use only when the user asks to change who is in a channel.

# ManageChannelParticipants

Add or remove members of an existing channel. Requires the current user to be a channel member. Direct-message channels cannot change membership. The channel owner cannot be removed. Participants accept `macro|<email>` ids from ListTeamMembers or bare emails. Use `add` to invite people and `remove` to take them out. Use only when the user asks to change who is in a channel.

## Parameters

| Parameter      | Type                  | Required | Description                                                                         |
| -------------- | --------------------- | -------- | ----------------------------------------------------------------------------------- |
| `channelId`    | string                | Yes      | Channel id whose membership should change.                                          |
| `action`       | `"add"` \| `"remove"` | Yes      | Membership change to apply.                                                         |
| `participants` | string\[]             | Yes      | People to add or remove, as `macro\|<email>` ids or bare emails. Must not be empty. |
