Skip to main content

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 TypePermissions
User Tokenchannels: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 NameDescription
1Step NameName of the step. This name has to be unique in a single workflow.
2User Access TokenSpecify 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.

3Test ConnectionVerifies whether the connection is established or not.

Input Tab

No.Field NameDescription
Input Fields:
1Channel NameSpecify the channel name from which you want to remove the user.
The data type is String. This field is mandatory.
2GetClick Get. If a connection is successfully established, it populates a list of channels.
3User Email IDSpecify the user email ID you want to remove from the channel.
The data type is String. This field is mandatory.
4GetClick Get. If a connection is successfully established, it populates a list of users.
5API Request DelayProvide an appropriate delay according to the rate limit of your Slack API.