capabilities.work

Remove a Member from a Channel and Log It

A 3-step recipe with Slack. We can help you get access.

Recipe · 3 steps

Remove a Member from a Channel and Log It

with Slack

Resolve an email, remove the user from a channel, and log the change.

  1. Resolve the supplied email address to a Slack user ID.
  2. Remove the resolved user from the target channel.
  3. Post a log message into the audit channel recording the removal.
What you'll need to have ready
  • email: The email address of the user to remove.
  • channel: The channel ID to remove the user from.
  • auditChannel: The channel ID to post the audit log message into.
  • logText: The audit log message text.
For your developer

Arazzo workflow slack:remove-member-announce, 3 operations: getUsersLookupbyemail → postConversationsKick → postChatPostmessage. Specs on APIs.io.