Configure Slack For Notifications
Install the DataHub Slack App into your Slack workspace
Video Walkthrough
Step-by-step guide
The following steps should be performed by a Slack Workspace Admin.
- Navigate to https://api.slack.com/reference/manifests#config-tokens
- Under Managing configuration tokens, select 'Generate Token'
- Select your workspace, then hit 'Generate'
- Now you will see two tokens available for you to copy, an Access Token and a Refresh Token
- Navigate back to your DataHub Slack Integration setup page, and paste the tokens into their respective boxes, and click 'Connect'.
- You will be automatically re-directed to Slack to confirm DataHub Slack App's permissions and complete the installation process:
- Congrats 🎉 Slack is set up! Now try it out by going to the Platform Notifications page
- Enter your channel in, and click 'Send a test notification'
Now proceed to the Subscriptions and Notifications page to see how you can subscribe to be notified about events on the platform, or visit the Slack App page to see how you can use DataHub's powerful capabilities directly within Slack.
Sending Notifications
For now we support sending notifications to
- Slack Channel Name (e.g.
#troubleshoot
) - Slack Channel ID (e.g.
C029A3M079U
) - Specific Users (aka Direct Messages or DMs) via user ID
By default, the Slack app will be able to send notifications to public channels. If you want to send notifications to private channels or DMs, you will need to invite the Slack app to those channels.
How to find Team ID and Channel ID in Slack
*Note we recommend just using the Slack channel name for simplicity (eg. #troubleshoot
)*
Via Slack App:
- Go to the Slack channel for which you want to get channel ID
- Click the channel name at the top
- At the bottom of the modal that pops up, you will see the Channel ID as well as a button to copy it
Via Web:
Go to the Slack channel for which you want to get channel ID
Check the URL e.g. for the troubleshoot channel in OSS DataHub Slack
Notice
TUMKD5EGJ/C029A3M079U
in the URL
- Team ID =
TUMKD5EGJ
from above - Channel ID =
C029A3M079U
from above
How to find User ID in Slack
Your User ID
- Click your profile picture, then select 'Profile'
- Now hit the '...' and select 'Copy member ID'
Someone else's User ID
- Click their profile picture in the Slack message
- Now hit the '...' and select 'Copy member ID'