Channel Management

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

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

  1. conversations.kick: This endpoint removes a user from a channel.
  2. conversations.archive: This endpoint archives a channel.

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. Expand the “Channel Management” section.
  5. Go to the “People who can remove members from public channels” drop-down menu.
  6. Select “Everyone, except guests,” and press “Save.”

Get hands-on with 1200+ tech skills courses.