Area: Observability
Sub-Area: Notifications
Applies to: OSS + Cloud
Issue
Microsoft Teams notifications from DataHub are not arriving, or you want to know how to send DataHub alerts to Teams.
You Might Be Asking
- How do I send DataHub alerts to Teams?
- Do I need to create a Teams webhook?
- Can I customize the Teams message format with Adaptive Cards or templates?
Cause
The DataHub Teams app is available in DataHub Cloud only. Self-hosted OSS DataHub does not have it.
In DataHub Cloud, Teams notifications use the DataHub Teams app. DataHub provides and runs the app. You do not register an Azure AD app, create a webhook, write Actions YAML or run a pipeline. Message sends, edits and threaded replies go through Bot Framework.
The Teams integration tile appears in DataHub only when Teams is enabled for your instance. If you do not see Settings > Integrations > Teams, contact DataHub Support.
Solution
DataHub Cloud: set up the Teams app
A Teams or Azure admin does these steps.
- In DataHub, go to Settings > Integrations > Teams. Under Teams App Package, click Download Teams App (.zip). If the download is not shown, contact DataHub Support.
- In the Teams Admin Center, go to Teams Apps > Manage Apps > Actions > Upload new app, and upload the ZIP.
- Log out of Teams, wait 5 minutes, and log back in.
- In Teams, go to Apps > Built for your org, find DataHub, click Add, then Open.
- Copy the team link: click "..." next to the team, then Copy link (Get link to team).
- In DataHub, paste the link into the Teams URL field. DataHub extracts the tenant ID. Click Connect to Teams and complete the Microsoft authentication.
- Add the DataHub bot to the channels you want to use.
The app needs these Microsoft Graph application permissions with admin consent: User.ReadBasic.All, Team.ReadBasic.All, Channel.ReadBasic.All and TeamsActivity.Send. See Microsoft Teams App Setup.
DataHub Cloud: choose where alerts go
- Platform default: on the Notifications settings page, select a Teams channel with the channel search. The Integrations and Notifications settings items are visible only to users who have the platform privilege to manage global settings.
- Custom channel: the Notification Options modal lets you enter a custom Slack channel, Teams channel or email address. If you leave it empty, DataHub uses the configured default.
- Personal: in Settings > My Notifications, turn on Teams and click Connect to Teams. You then get Teams direct messages.
- Group-level Teams notifications are not supported. Use the platform-level Teams integration.
You can subscribe to these change types: deprecations, assertion status changes, incident status changes, schema changes, ownership changes, glossary term changes and tag changes. To subscribe to one assertion, use its bell button. See Subscribing to assertions and Enabling notifications.
DataHub Cloud: test and troubleshoot
- When a Teams channel is set on the Notifications settings page, click Send a test notification.
- Check that the DataHub bot was added to the target channel (setup step 7).
- If the problem continues, contact DataHub Support.
DataHub Cloud: message format
The Teams app sends messages in a fixed format. You cannot set Adaptive Card templates, message formats, batching or rate limits. To manage subscriptions in code, use the DataHub GraphQL API or the Python Subscriptions SDK.
Self-hosted OSS: the Actions teams action
The teams action in DataHub Actions is a separate, self-hosted option. It accepts only these keys under config and rejects any others:
action:
type: "teams"
config:
webhook_url: "${TEAMS_WEBHOOK_URL}" # required
base_url: "http://localhost:9002/" # default
suppress_system_activity: true # default
- It posts to the webhook URL as a message card, in a fixed format.
- It processes only EntityChangeEvent_v1 events and skips others.
- It drops events made by the DataHub system actor when
suppress_system_activityis true, which is the default. - It sends at most 1 message per second. You cannot change this.
- It has no test notification feature. When the action starts, it posts a welcome card to the webhook.
- To filter events, set
filtersat the top level of the pipeline, not underaction.config. Use theevent_typefilter, for examplefilters: [{type: event_type, config: {filter: {EntityChangeEvent_v1: {event: [{category: TAG}]}}}}]. See Actions filters.