Channel Management
Learn to use Slack API calls to manage channels in the workspace.
We'll cover the following
Overview
Let’s look at the following endpoints in this lesson:
conversations.kick
: This endpoint removes a user from a conversation.conversations.archive
: This endpoint archives a conversation.
Remove a user from a channel
To remove a user from a channel, we access the https://slack.com/api/conversations.kick
endpoint.
Only channel owners and workspace admins can remove users from channels by default. Change the admin settings to allow the application to remove users.
- Click the name of your workspace.
- Open “Workspace settings” in the “Settings & administration” menu.
- Go to the “Permissions” tab.
- Go to the “People who can remove members from public channels” drop-down menu.
- Select “Everyone, except guests” and press “Save.”
Get hands-on with 1200+ tech skills courses.