Remove User From Channel
This step removes a user from your Slack workspace. You provide the user's ID. Use this step in offboarding workflows that revoke Slack access for departing employees, or in user management workflows that clean up inactive accounts. Prerequisite User must have the following permissions:
Tokens and Permissions
| Token Type | Permissions |
|---|---|
| User Token | channels:write |
channels:read | |
groups:write | |
groups:read | |
im:write | |
im:read | |
mpim:write | |
mpim:read | |
users:read.email |
Reference API documentation: https://api.slack.com/methods/conversations.kick
Configurations
| No. | Field Name | Description |
|---|---|---|
| 1 | Step Name | Name of the step. This name has to be unique in a single workflow. |
| 2 | User Access Token | Specify the generated User Access Token. The data type is Secure String. This is a mandatory field. Note: A bot OAuth token in Slack does not have the necessary permissions to remove a user from a channel since it does not support the bot OAuth token. |
| 3 | Test Connection | Verifies whether the connection is established or not. |
Input Tab
| No. | Field Name | Description |
|---|---|---|
| Input Fields: | ||
| 1 | Channel Name | Specify the channel name from which you want to remove the user. The data type is String. This field is mandatory. |
| 2 | Get | Click Get. If a connection is successfully established, it populates a list of channels. |
| 3 | User Email ID | Specify the user email ID you want to remove from the channel. The data type is String. This field is mandatory. |
| 4 | Get | Click Get. If a connection is successfully established, it populates a list of users. |
| 5 | API Request Delay | Provide an appropriate delay according to the rate limit of your Slack API. |