Channel Management

Learn to use Slack API calls to manage channels in the workspace.

Overview

Let’s look at the following endpoints in this lesson:

  1. conversations.kick: This endpoint removes a user from a conversation.
  2. 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.

  1. Click the name of your workspace.
  2. Open “Workspace settings” in the “Settings & administration” menu.
  3. Go to the “Permissions” tab.
  4. Go to the “People who can remove members from public channels” drop-down menu.
  5. Select “Everyone, except guests” and press “Save.”

Get hands-on with 1400+ tech skills courses.