
Slack Kick
CertifiedRemove a user from a channel
Slack Kick
Certified
Remove a user from a channel
Removes a user without notifying them. Slack requires a user token (xoxp-); bot tokens cannot call this API. See Slack docs for conversations.kick limits.
yaml
type: io.kestra.plugin.slack.app.conversations.KickExamples
Remove a user from a channel
yaml
id: slack_kick_user
namespace: company.team
tasks:
- id: kick_user
type: io.kestra.plugin.slack.app.conversations.Kick
token: "{{ secret('SLACK_TOKEN') }}"
channel: "C1234567890"
user: "U1234567890"
Properties
channel *Requiredstring
Channel ID
Channel to remove the user from (Slack channel ID). To get the channel ID, right click on the channel name in Slack and select 'Copy Link'. The ID is the last part of the URL.
token *Requiredstring
Slack token
user *Requiredstring
User ID to remove
Member ID to remove (e.g., U123...); user must currently be in the channel. To get a user ID, go to the user's profile, click the three dots, and select 'Copy member ID'.
pluginDefaultsRef Non-dynamicstring
Reference (ref) of the pluginDefaults to apply to this task.