This commit deletes the duplicate `users:read` token scope from the list of token scopes.
2.5 KiB
Zulip Slack integration
Get Zulip notifications for messages on your team's public Slack channels! You can choose to map each Slack channel either to a Zulip topic or to a Zulip channel.
See also the Zulip Slack incoming webhook integration.
!!! warn ""
Using [Slack's legacy Outgoing Webhook service][5] is no longer
recommended. Follow these instructions to switch to the new
[Slack Events API][3].
{start_tabs}
-
To map each Slack channel to a Zulip topic, create one channel you'd like to use for Slack notifications. Otherwise, for each public Slack channel, create a Zulip channel with the same name.
-
{!create-an-incoming-webhook.md!}
-
{!generate-webhook-url-basic.md!}
To map each Slack channel to a Zulip topic, make sure that the Send all notifications to a single topic option is disabled when generating the URL. Add
&channels_map_to_topics=1to the generated URL.Otherwise, add
&channels_map_to_topics=0to the generated URL. Note that any Zulip channel you specified when generating the URL will be ignored in this case. -
Create a new Slack app, and open it. Navigate to the OAuth & Permissions menu, and scroll down to the Scopes section.
-
Make sure Bot Token Scopes includes
channels:read,channels:history,emoji:read,team:read,users:read, andusers:read.email.!!! tip ""
See [Slack's Events API documentation][3] for details about these scopes. -
Scroll to the OAuth Tokens for Your Workspace section in the same menu, and click Install to Workspace.
-
The Bot User OAuth Token should be available now. Note it down as
BOT_OAUTH_TOKEN, and add it to the end of the URL you generated above as:&slack_app_token=BOT_OAUTH_TOKEN. -
Go to the Event Subscriptions menu, toggle Enable Events, and enter the URL with the bot user token in the Request URL field.
-
In the same menu, scroll down to the Subscribe to bot events section, and click on Add Bot User Event. Select the
message.channelsevent.
{end_tabs}
{!congrats.md!}
Related documentation
{!webhooks-url-specification.md!}
