add_user_to_channel
Add a user to a channel using user ID and channel ID. Requires manage channel members permission.
Instructions
Add a user to a channel.
Requires permission to manage channel members. Adding a user who is already in the channel has no additional effect.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_id | Yes | 26-character user identifier (e.g., 'o5w8h47pdfbzjc4d8w7dhnhren') | |
| channel_id | Yes | 26-character channel identifier (e.g., 'o5w8h47pdfbzjc4d8w7dhnhren') |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| roles | Yes | Space-separated role names | |
| user_id | Yes | User identifier | |
| msg_count | Yes | Messages seen count, including replies in threads | |
| channel_id | Yes | Channel identifier | |
| mention_count | Yes | Unread @-mentions count, including thread replies | |
| last_update_at | Yes | Last update timestamp | |
| last_viewed_at | Yes | Last viewed timestamp | |
| msg_count_root | Yes | Root messages seen count, excluding thread replies | |
| mention_count_root | Yes | Unread root @-mentions count, excluding thread replies |