Mattermost and Microsoft Teams integration

Forward Microsoft Teams chat notifications into a self-hosted Mattermost using the documented Teams sync plugin, an Entra ID app registration and delegated Graph permissions, on a plan that includes it.

On this page

How Mattermost and Microsoft Teams integration works for mixed-tool teams

The Mattermost Microsoft Teams integration forwards real-time chat notifications from Microsoft Teams into Mattermost, using a documented plugin and an Azure app registration that you create in your own Microsoft Entra ID tenant. It is one-directional forwarding for chat activity, so messages from Teams appear in Mattermost but the integration does not turn Mattermost into a Teams client. It does not cover Teams Meetings or Microsoft 365 Calendar, which are separate integrations with their own permissions. Before any design work, confirm plan availability: the integration is listed for Entry, Enterprise and Enterprise Advanced plans and not for Professional. If your current subscription is Professional, the integration is not available until the plan changes, and that decision comes before the Azure work.

For a mixed-tool team, the design question is which Teams chats should reach which Mattermost audience, and who in the organization is allowed to make that connection. The setup registers an Azure app with a redirect URI built from your MM_SITE_URL value, followed by the plugin's OAuth callback path, and requests Microsoft Graph delegated permissions including Chat.Read, ChatMessage.Read, Files.Read.All and offline_access. Those permissions let the integration read chat content and files on behalf of the signed-in user, so have your identity and compliance owners review the consent model and the Entra ID admin consent process before a user connects. Confirm the current permission list and admin consent behavior against the Mattermost documentation for connecting Microsoft Teams, because the scope of data forwarded is set by what those permissions allow.

Plan the operational side before go-live. The MM_SITE_URL value must match the public address users reach, so changes to the proxy, DNS or site URL later will break the redirect until the Azure app is updated. Decide who owns the Azure app registration and its secret, how that secret is rotated, and what happens to forwarded history when a Teams user leaves. Run a test with a pilot user and a non-sensitive chat, confirm that notifications arrive in the intended channel, and record the outcome for your security review. Treat the plugin as a component to patch and monitor alongside the Mattermost server, and check its compatibility with your planned server release before upgrading.

What you need before connecting Teams to Mattermost

Connecting Microsoft Teams to Mattermost depends on three things lining up: the plan you buy, a reachable Mattermost server with a fixed public address, and a Microsoft Entra ID tenant where someone with the right rights can register an app and grant consent. Work through these cards before anyone opens the plugin settings, because a missing redirect URI or unconsented permission is the most common reason the setup stalls.

Confirm the plan includes the integration

The Teams integration is available on the Entry, Enterprise and Enterprise Advanced plans but not on Professional. Check this against your current Mattermost contract before scoping the work, since a Professional subscription would need an upgrade first. Ask your Mattermost account contact to confirm the plan name in writing, because pricing is quoted through sales and the plan matrix can change between contract terms.

Mattermost pricing

A running server on a fixed HTTPS address

The integration builds its OAuth redirect from your MM_SITE_URL, so that value must be the public address users actually reach, served over HTTPS, and stable for the life of the integration. Changing the hostname later means updating the Azure app registration as well. Confirm the server version and the plugin version with the official docs for your environment before you build, since both move on the monthly release schedule and support windows differ by release.

Teams sync docs

Entra ID rights to register and consent

Someone with rights to register applications in Microsoft Entra ID must create the app, and someone who can grant admin consent must approve the delegated Graph permissions for your tenant. Agree who holds these roles before the project starts. If your organization restricts app registration or user consent, plan for a tenant administrator to approve the request, because the integration cannot complete without consent.

Redirect URI registered exactly

The Azure app must carry the redirect URI built from your site address, ending in the plugin's oauth-redirect path under com.mattermost.msteams-sync. The value is case and slash sensitive, so copy it from the official setup steps rather than retyping it. A mismatch between this URI and the one Mattermost sends produces an authorization error that looks like a permissions problem, so check it first when troubleshooting.

Graph delegated permissions to approve

The integration requests Microsoft Graph delegated permissions: Chat.Read, ChatMessage.Read, Files.Read.All and offline_access. Chat and message reads expose conversation content, and file reads expose shared files, so review these scopes with your security team before consent. Offline access lets the sync keep running without a user signing in again, which is why it belongs on the review list alongside the chat scopes.

Teams users whose chats will sync

Forwarding applies to specific Teams users, not the whole tenant by default, so list the people whose chat notifications should reach Mattermost and confirm each one has a matching account on your Mattermost server. Agree with legal, HR or compliance which users and which chats are in scope, since forwarded messages then live under your Mattermost retention and access rules. Note that a user who has not signed in to the integration will not appear in the forwarded flow.

Configuring the Teams sync plugin step by step

This sequence takes a self-hosted Mattermost from a plan and version check to a verified Microsoft Teams chat notification arriving in Mattermost. Each step ends with a check so the team knows it can move on.

  1. Confirm plan and server version

    Before touching Azure or the server, confirm with your Mattermost account team that your plan includes the Microsoft Teams integration. The supplied plan facts list it on Entry, Enterprise and Enterprise Advanced, but not Professional. Then check the running server version in System Console and confirm it is supported by the plugin release you intend to install. Done when you have written confirmation of the plan and a recorded version number that both the platform owner and the Microsoft 365 administrator have seen.

  2. Set the site URL

    Confirm that the Site URL in System Console matches the exact public address users will open, including the scheme. The sync plugin builds its OAuth redirect from this value, so a mismatch will cause the consent flow to fail later. Set the value in configuration (MM_SITE_URL) and restart the server if your deployment requires it. Done when the Site URL field shows the final HTTPS address and a browser loads Mattermost at that address without certificate warnings.

  3. Register the Azure app and redirect URI

    A Microsoft Entra ID administrator creates an app registration for the sync plugin in the tenant that holds the Teams accounts you want to connect. Add a web redirect URI in the form )/plugins/com.mattermost.msteams-sync/oauth-redirect, substituting your own site URL. Record the application (client) ID, the directory (tenant) ID and a client secret with its expiry date in your secrets store. Done when the registration shows the exact redirect URI with no trailing slash differences from the Site URL.

  4. Add Graph permissions and grant admin consent

    In the app registration, add Microsoft Graph delegated permissions that include Chat.Read, ChatMessage.Read, Files.Read.All and offline_access. Confirm the full list against the vendor's current setup page before granting, because the supplied facts name these permissions but the page may list more. A tenant administrator then grants admin consent for the organization. Done when the permissions panel shows every required permission with a granted status and no pending consent prompt remains.

  5. Install and configure the plugin in System Console

    In System Console, open the plugin management area, install the Microsoft Teams sync plugin and enable it. Enter the application ID, tenant ID and client secret from the Azure registration, and confirm the redirect URI shown in the plugin settings matches the one you registered. Keep the client secret in the server configuration or secrets handling your team already uses, not in a shared document. Done when the plugin reports an enabled state and the saved settings show no validation errors.

  6. Connect a Teams account through OAuth

    Sign in to Mattermost as a test user, open the plugin's connect action, and complete the Microsoft sign-in and consent prompt for a Teams account you own. Use a test account first so that any mapping or permission surprises do not affect production users. The redirect should return you to Mattermost with a confirmation that the account is connected. Done when the plugin lists the connected Teams account against the Mattermost user and the connection survives a page reload.

  7. Verify a test chat notification

    From a separate Teams account, send a direct chat message to the connected test account in Teams. Within the plugin's delivery behavior, the message should appear in Mattermost as a forwarded notification. Check that the sender, text and timestamp are correct, and that no content was delivered to a user who should not receive it. Record the test result, the plugin version and the server version in your change record. Done when the test message appears in Mattermost and the team has documented the verification.

How Teams chat notifications reach Mattermost

The integration works by having the Mattermost server act on behalf of one signed-in Microsoft user. The plugin authenticates to Microsoft Graph using delegated permissions, which means it can only read what that user can read. It requests Chat.Read and ChatMessage.Read to receive chat activity, and Files.Read.All for shared file access. Once it has that activity for the connected user, it posts notifications into Mattermost. The practical consequence is that the visible set of Teams chats is defined by whose account was connected, not by the organization as a whole. Before rollout, decide which user accounts will be connected, confirm with the people who own those accounts that forwarding their chats into Mattermost is acceptable, and check how your Microsoft tenant's consent settings apply to delegated Chat permissions.

The offline_access permission matters for how long the link stays working. It allows Microsoft to issue a refresh token alongside the access token, so the plugin can obtain new access tokens without the user signing in again each time one expires. Without it, the notifications would stop once the short-lived access token lapsed. This also means the refresh token is a sensitive credential stored on your Mattermost server, so the server's access controls and backups should be planned with that in mind. Ask your identity team how the tenant's token lifetime and conditional access policies will interact with a refreshable grant, because a policy change in Entra ID can end the connection without any change on the Mattermost side.

Plan for a connection that depends on a person. If the connected user leaves the organization, changes role, or has their account disabled, forwarding stops, and the plugin does not replace that user with another. Confirm with the vendor documentation at Connect Microsoft Teams to Mattermost how a connection is removed and re-established, and document who owns each connection and what the offboarding step is. Test the path end to end with a non-production user and a test chat before relying on it, and confirm that the notification content and retention behavior meet your records and privacy requirements.

Where the trust boundaries sit between Teams, Entra ID and Mattermost

The flow starts with chat activity in Microsoft Teams, which Microsoft Graph exposes to the integration through delegated permissions such as Chat.Read and ChatMessage.Read. Entra ID sits on the consent path: an administrator registers the Azure app and grants consent, and the OAuth redirect returns the user to the Mattermost server running the msteams-sync plugin. Check that the redirect URI matches your MM_SITE_URL exactly, and confirm which Graph permissions your tenant administrator will approve before you start. The PostgreSQL database and the server stay inside your network boundary.

Chat data flows from Teams through Graph into Mattermost, with consent issued by Entra ID.

Which Teams identities and data map to Mattermost users and channels

This table maps each Teams-side element to the Mattermost object it lands in, and shows which Microsoft Graph delegated scope unlocks each kind of data. Read it before you grant consent, because each scope widens what the sync can read from a user's Teams account. Where matching depends on email addresses, confirm the behavior in a test tenant before rollout.

Teams elementGraph scope or mappingMattermost destinationWhat to confirm
Entra ID user accountSigned-in Teams user matched to a Mattermost userMattermost user accountWhether matching uses email addresses in your tenant and whether mismatched addresses break the link
One-to-one and group chatsChat.Read delegated scopeMattermost destination set per user or channel by the pluginWhich chats the plugin can see for each connected user
Chat message contentChatMessage.Read delegated scopeForwarded notification posts in the mapped Mattermost destinationHow message bodies, mentions and edits appear after forwarding
Files shared in chatsFiles.Read.All delegated scopeFile references or attachments in forwarded postsWhether file content is copied or only linked, and who can open the link in Mattermost
Token refresh for ongoing syncoffline_access delegated scopeSync continues without the user signing in againHow long refresh tokens last under your Conditional Access and sign-in policies
Users who never connectNo delegated grant for that userNo forwarded chats for that userWhether your rollout requires every relevant user to connect, and how you track who has not

Securing the Azure app, Graph scopes and the plugin

The Teams connection reads chat content through an Entra ID app and delegated Microsoft Graph permissions, so its security depends on who can consent, who can configure it, and whose chats it can reach. The cards below cover the controls to set before the plugin goes live and the checks to repeat after changes.

Review each delegated Graph permission

The documented setup grants delegated permissions including Chat.Read, ChatMessage.Read, Files.Read.All and offline_access. Confirm with your own security team that each one is needed for the forwarding you intend, and remove any permission the plugin does not require for your use case. Files.Read.All reaches every file the signed-in user can access, so review it first. Re-check the list whenever the plugin version changes, since requested scopes can change between releases.

Teams sync docs

Govern admin consent in Entra ID

Delegated permissions that need administrator approval should go through a documented consent decision, not a casual click by a tenant administrator. Decide who may grant consent for the Mattermost app, record the approval, and restrict user consent in the tenant if your policy requires it. Ask Microsoft Entra support or your tenant administrators which consent policies apply to your tenant before you start, because the answer changes who must sign off.

Protect the client secret

The Azure app's client secret lets the server exchange tokens for Graph data, so treat it like a production credential. Store it in your secrets manager or an encrypted configuration path, not in a shared document or chat channel. Set the shortest expiry your rotation process can support, and record the expiry date in your calendar. Rotate the secret after any staff change on the team that manages the app, and confirm the server's logs do not echo it.

Require HTTPS redirect URIs

The redirect URI must be built from your Mattermost site URL: )/plugins/com.mattermost.msteams-sync/oauth-redirect. Use HTTPS only, make sure MM_SITE_URL matches the address users actually reach, and remove any extra redirect entries left from testing. A mismatched or plain HTTP URI is a common cause of failed sign-in and a sign that the registration was copied from an unreviewed source.

Limit who can install and configure

Plugin installation and configuration are administrator actions in Mattermost, so restrict the System Console role or admin group to the people who own the integration. Confirm who can change the Azure app values, the connected Microsoft account and the sync settings, and keep that list in your access review. Audit administrator changes in your server logs so an unexpected reconfiguration is visible.

Review whose Teams chats are exposed

The connection forwards chat notifications for the Microsoft accounts it is linked to, so the exposure follows those users. Before enabling it, agree with HR, legal and the business owner which employees and which chat types may be forwarded, and confirm the connected account set matches that agreement. Repeat the review when people join, move teams or leave, because a departing user's connection should be removed promptly.

Why the Teams integration fails and how to fix it

This table lists the failures teams most often hit when connecting Microsoft Teams to Mattermost, with the symptom to look for and the fix for each. Read it before the first connection attempt and again when notifications stop arriving.

FailureWhat it looks likeHow to fix it
Plan does not include the integrationSetup is unavailable or the plugin refuses to connect on a Professional subscriptionConfirm the plan with Mattermost before the build. The Teams integration is listed for Entry, Enterprise and Enterprise Advanced, not Professional.
Redirect URI mismatchMicrosoft Entra ID returns an error after sign-in, and the OAuth exchange never completesRegister the redirect URI exactly as )/plugins/com.mattermost.msteams-sync/oauth-redirect, using the same scheme, host and path as the server's configured site URL.
Site URL changed after setupA working connection breaks after a DNS, proxy or domain changeUpdate the Azure app registration and the MM_SITE_URL setting together, then reconnect. Treat the URL as a fixed part of the deployment.
Missing admin consentSign-in works for the user, but Graph calls fail with authorization errorsHave a tenant administrator grant consent for the app's permissions. Ask your Microsoft 365 team to confirm consent status in the Entra admin center.
Missing delegated permissionsSome chat notifications arrive but others, or file content, never doCompare the app's API permissions with the documented list, including Chat.Read, ChatMessage.Read and Files.Read.All, and add any that are absent.
Expired or revoked tokensNotifications stop after a period of normal operation or after a password resetConfirm offline_access is granted so refresh tokens are issued. Reconnect the affected user after a revocation, and check whether conditional access policies are blocking refresh.
Chats outside the connected user's scopeMessages from some group chats or other people's conversations never reach MattermostThe integration forwards only what the connected user can read in Teams. Set expectations with users, and test with a chat the connected account belongs to.

What buyers ask before connecting Teams to Mattermost

Does the Microsoft Teams integration work on the Mattermost Professional plan?

No. The Mattermost Microsoft Teams integration is available on the Entry, Enterprise and Enterprise Advanced plans but not on Professional, so a Professional subscription cannot use it. Confirm the current plan matrix with Mattermost sales before you buy, because the pricing page does not list the feature level by plan in the detail you need. If you already run Professional and want Teams forwarding, the plan change is a commercial decision that should be settled before the Entra ID work starts.

Who has to act on a Teams connection, and how much work is it?

Three roles are involved. A Microsoft Entra ID administrator registers the Azure app, sets the redirect URI and grants the Microsoft Graph delegated permissions, including Chat.Read, ChatMessage.Read, Files.Read.All and offline_access, and may need to give admin consent. A Mattermost system administrator configures the plugin and the site URL. A plan owner confirms the subscription tier and signs off on which Teams data will flow into Mattermost. The number of hours depends on your tenant policies and approval steps, so ask your team or a partner to estimate it against your own change process.

Can our own team set this up, or do we need a partner?

Either path can work. An in-house team needs someone comfortable with Entra ID app registrations and Microsoft Graph permissions, plus a Mattermost administrator who can manage plugins. The harder part is usually the governance decision: which Teams chats and files should reach Mattermost, who can see them, and how that fits your retention and data handling rules. A partner can take on the build and testing against a written scope, while your security and compliance leads still approve the data flow. Decide based on whether those skills already exist in-house.

What changes the scope and cost of the work?

The main drivers are the number of users and chat populations in scope, the number of environments (for example production, staging and a test tenant), how many Entra ID tenants are involved, and how strict your approval and change control processes are. Each additional environment means another redirect URI and another app registration to verify. Ask any quote to list these items separately, along with who pays for Microsoft tenant changes, Mattermost licensing and the testing effort. Cost recurs mainly through licensing and upkeep, while the initial setup is one-time work.

What must our team provide before the work starts?

Prepare access and decisions in advance. You need the public site URL of the Mattermost server, since the redirect URI is built from it, administrator access to the Microsoft Entra ID tenant or a named approver for app registration, and the consent path for Graph permissions. You also need an active Mattermost subscription on a plan that includes the integration, a test user population in Teams, and a written decision on which chats and files may be forwarded. Missing any of these usually adds delay rather than extra technical work.

What recurring work remains after the integration goes live?

Expect ongoing work in three areas. Microsoft Graph permissions and consent need periodic review, especially when the app's scope changes or your tenant policies tighten. The Mattermost server moves through monthly releases and Extended Support Releases, so the plugin must be checked against each upgrade you apply. Finally, someone must watch token expiry, failed forwarding and access reviews for the service account. Ask your provider whether they offer a retainer for these tasks and what they cover, and confirm the Mattermost support window for your server version.

Which security questions should the Entra ID admin and security team settle first?

Settle the data scope before consent is granted. Delegated Graph permissions such as Chat.Read and Files.Read.All give the app read access to content that users can reach, so the security team should confirm which tenants, users and file types are covered, how access is logged, and how the app registration is removed if the project ends. Record who approved the permissions and where the client secret or certificate is stored. Confirm the exact permission set and consent behavior with Microsoft documentation for your tenant before approving.

Confirming plan fit and scope before you buy

Confirm the plan before anything else, because the Teams sync is not available on every tier. The Mattermost Microsoft Teams integration is listed for Entry, Enterprise and Enterprise Advanced, and it is not listed for Professional. Check that list against the current Mattermost pricing page and get the answer in writing from Mattermost sales, including whether the feature is bundled or priced separately. Plans are sold as prepaid annual subscriptions by seat count, and the pricing page shows no public figures, so ask for a quote that names the seat count, the term and every plan that the Teams sync depends on.

The plan choice also decides the rest of your architecture. SSO (SAML, OIDC and OAuth) and AD/LDAP user sync start at Professional, so a Teams-only purchase on a lower tier may still leave you without the identity features your security team expects. High availability clustering and FIPS 140-3 compliance require Enterprise, and air-gapped deployment requires Enterprise Advanced. If the sync must run in a network with no outbound internet access, that requirement alone may decide the tier. Write these needs down before you talk to sales, so the quote covers the features you will operate rather than the cheapest line item.

Separate the Teams chat sync from its sibling integrations, because each one registers its own Azure app and requests different Graph permissions. The chat sync reads Teams chat notifications into Mattermost and uses delegated permissions such as Chat.Read, ChatMessage.Read, Files.Read.All and offline_access. The Teams Meetings integration needs a different permission (OnlineMeetings.ReadWrite) and an admin consent step, the Calendar integration uses both delegated and application permissions, and the Mission Collaboration app embeds Mattermost inside Teams and Outlook with Entra ID single sign-on. Ask which of these your users actually need. Buying for the wrong one means a second Azure registration, a second consent review and possibly a second plan decision.

How DeployOpen scopes and delivers the Mattermost Teams integration

DeployOpen plans, builds, tests and hands over the Teams-to-Mattermost integration inside your own infrastructure, with the Entra ID app registration, Graph permissions and plan check agreed before work starts. Engagements are fixed-scope, with scope, deliverables and timelines confirmed in writing.

How we scope

  • Confirm your Mattermost plan and whether it includes the Microsoft Teams integration before any build work starts.
  • Document the public site URL, so the Azure redirect URI matches your Mattermost deployment exactly.
  • Agree which Graph delegated permissions your tenant administrators will approve, and who grants consent.

How we build

  • Register the Azure app, configure the OAuth redirect and set up the Teams sync plugin on your server.
  • Test that chat notifications from Teams arrive in the intended Mattermost channels with correct users.
  • Verify token handling, offline access and file permissions against your documented security requirements.

How we hand over

  • Deliver a written configuration record covering app registration, permissions, redirect URI and plugin settings.
  • Provide runbooks for rotating client secrets, reauthorizing users and removing the integration cleanly.
  • Walk your administrators through the setup so they can review and operate it independently afterward.

How we support

  • Offer ongoing support and upgrades for the integration as a retainer, aligned with your Mattermost release schedule.
  • Retest the integration after Mattermost server upgrades, Azure changes or permission updates in your tenant.
  • Ask your team to confirm current plan terms and Microsoft Graph requirements with the vendor before each change.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.