The Microsoft Exchange integration brings users' Outlook calendars into Rocket.Chat. Users see their upcoming meetings in Rocket.Chat, their status changes to Busy while a meeting runs, and they get a reminder before a meeting starts. It can also sync users' personal Outlook contacts, so incoming Rocket.Chat Voice calls show the caller's name instead of a number.
From Rocket.Chat 9.1, the integration has two modes:
Server-to-server (all platforms): A workspace administrator configures one connection to Microsoft Exchange, and Rocket.Chat syncs every user's calendar on the server. Users don't sign in, and it works with Exchange Online (Microsoft 365) and Exchange Server on-premises.
Legacy (per user, desktop app only): Each user signs in to Exchange from the Rocket.Chat desktop app.
Legacy mode is deprecated and will be removed in Rocket.Chat 10.0. If your workspace uses it, plan to switch to Server-to-server.
Choose an integration mode
Feature | Server-to-server (all platforms) | Legacy (per user, desktop app only) |
|---|---|---|
Who connects to Exchange | A workspace administrator, once for the whole workspace | Each user, from the desktop app |
Platforms | Web, desktop, and mobile | Desktop app only |
Exchange types | Exchange Online (Microsoft Graph) or Exchange on-premises (EWS) | Exchange on-premises (EWS) only |
Personal Outlook contacts | Yes, optional | No |
Status | Available from Rocket.Chat 9.1 | Deprecated |
Prerequisites
Before you set up Server-to-server mode, make sure you have:
License: A premium plan that includes the Outlook Calendar module (
outlook-calendar). It's required for both integration modes, Outlook calendar status sync, and Test connection. To sync personal contacts and identify incoming callers, the plan must also include the Team voice calls module (teams-voip).Verified email addresses: Each user's email address in Rocket.Chat must be verified and must be the address of their Exchange mailbox. Rocket.Chat doesn't sync bots and apps, users with the guest role, federated or remote users, deactivated users, or users without a verified email address.
Network access: Outbound HTTPS (port 443) from the Rocket.Chat server to Exchange:
Exchange Online (Microsoft Graph):
login.microsoftonline.comandgraph.microsoft.comExchange on-premises (EWS): the EWS URL only
Permissions: Changing the Microsoft Exchange settings requires the
edit-privileged-settingpermission, as with other workspace settings. Test connection requires thetest-admin-optionspermission. The admin role has both by default. Users don't need any extra permission to see their calendar and contacts.
Configure general settings
From Rocket.Chat 9.1, the Outlook Calendar settings page is named Microsoft Exchange, and it holds the settings for both modes.
To enable the integration and choose its mode, go to Manage → Workspace → Settings → Microsoft Exchange and configure the following settings. They appear at the top of the page and apply to both integration modes:
Setting | Description |
|---|---|
Enabled | Turns the integration on, in either mode. When it's off, the Outlook Calendar option is hidden in every room. Off by default. |
Integration mode | Legacy (per user, desktop app only) or Server-to-server (all platforms). Each mode enables only its own settings. The default is Legacy (per user, desktop app only). |
Outlook calendar status sync | Sets a user's status to Busy during scheduled Outlook meetings and returns it to the previous status afterward. Applies in both modes. On by default. |
Outlook URL | The web address that Open Outlook opens, for example |

The internal setting IDs didn't change. The group ID is still
Outlook_Calendar, and the existing settings keep their IDs, such asOutlook_Calendar_EnabledandOutlook_Calendar_Exchange_Url. Automation that changes these settings through the REST API keeps working.
Set up Server-to-server mode
Setup has four steps: prepare Exchange, configure the sync, enter the credentials, and save and test the connection.
Step 1: Prepare Exchange
Prepare Exchange for your Exchange type before you configure Rocket.Chat.
Exchange Online (Microsoft Graph)
You need:
A Microsoft 365 tenant with Exchange Online mailboxes for your users.
A Microsoft Entra administrator who can register an app and grant admin consent for application permissions, such as a Global Administrator or Privileged Role Administrator.
To register the app:
In the Microsoft Entra admin center, go to App registrations → New registration. Enter a name, for example
Rocket.Chat Exchange, select Accounts in this organizational directory only, and leave the redirect URI empty.On the Overview page, copy the Application (client) ID and the Directory (tenant) ID.
Go to Certificates & secrets → New client secret. Copy the secret Value right away, because it's shown only once. Note the expiry date: syncing stops when the secret expires.
Go to API permissions → Add a permission → Microsoft Graph → Application permissions. Add
Calendars.Read, andContacts.Readif you'll sync contacts.Click Grant admin consent. The status of each permission must show Granted.
We recommend limiting the app registration to the mailboxes it should read with an application access policy. This is optional, but it restricts which mailboxes the app can access.
Exchange on-premises (EWS)
You need:
Exchange Server 2016, 2019, or Subscription Edition, with Exchange Web Services (EWS) enabled, which is the default.
The EWS URL, usually
https://mail.example.com/EWS/Exchange.asmx, reachable from the Rocket.Chat server over HTTPS.A dedicated domain service account, for example
CORP\svc-rocketchat. It doesn't need administrator rights.An Exchange administrator (Organization Management) to assign the impersonation role.
An authentication method allowed on the EWS virtual directory:
NTLM (recommended). NTLM is required when Extended Protection is on, which is the default on Exchange 2019 CU14 and later and on Subscription Edition.
Basic, for older servers that allow it.
If the Exchange certificate comes from an internal certificate authority: that CA certificate in PEM format.
If a load balancer sits in front of Exchange and Extended Protection is on: the load balancer must pass TLS through to Exchange without terminating it.
If Rocket.Chat runs in FIPS mode: NTLM isn't available, so Basic authentication over HTTPS must be allowed on the EWS virtual directory.
To prepare Exchange, in the Exchange Management Shell:
Create the service account in Active Directory, or choose an existing one.
Assign the ApplicationImpersonation role to the service account, limited to the mailboxes it should read or to all mailboxes.
Make sure EWS isn't blocked for those mailboxes.
With Exchange on-premises (EWS), Rocket.Chat never contacts a Microsoft cloud endpoint, so this option suits air-gapped networks.
Step 2: Configure the sync
In Manage → Workspace → Settings → Microsoft Exchange, make sure Enabled is on and Integration mode is Server-to-server (all platforms).
Expand the Server-to-server (all platforms) section and set the following:
Setting | Description |
|---|---|
Exchange type | Exchange Online (Microsoft Graph) or Exchange on-premises (EWS). Each deployment supports only one, so Rocket.Chat never detects it automatically. Your selection decides which credentials section is available. The default is Exchange Online (Microsoft Graph). |
Calendar sync interval (hours) | How often Rocket.Chat reads each mailbox for calendar changes. The default and shortest interval is 1 hour. An interval that doesn't divide the day evenly is rounded down to one that does (1, 2, 3, 4, 6, 8, 12, or 24). Shorter intervals keep the Busy status closer to the calendar and increase load. |
Calendar sync window (days) | How many whole days each calendar sync covers, counting from midnight today. Enter a value from 1 to 7; a value outside that range is adjusted to it. The default, 2 days, covers today and tomorrow. |
Sync personal contacts | Reads each user's Outlook contact folders, so their contacts appear in Rocket.Chat Voice and identify incoming callers. Off by default. With Exchange Online, contact favorites aren't synced, because Microsoft Graph doesn't expose Outlook favorites. Users can mark synced contacts as favorites in Rocket.Chat. Those favorites aren't sent to Outlook, and they're lost when the contact moves to another address book in Outlook or when the workspace switches to Exchange on-premises (EWS). |
Contacts sync interval (days) | Available when Sync personal contacts is on. How often Rocket.Chat reads each mailbox for contact changes. Contacts sync at 03:00 server time; for example, with 3, they sync every third day at 03:00. A fraction is truncated, and anything below one day is read as one day. The default is 1 day. |
Sync contact photos | Available when Sync personal contacts is on. Also imports contact photos. This makes each sync longer, and the first sync after you turn it on covers every contact. A photo larger than 500 kB is skipped. Off by default. |
Default region for phone numbers | Available when Sync personal contacts is on. The country to assume for a synced number that Exchange holds without a country code, as a two-letter ISO 3166-1 code such as |
Step 3: Enter the credentials
The credentials sections appear above the Server-to-server (all platforms) section. Expand the one that matches your Exchange type.
Microsoft Graph credentials
Available only when Exchange type is Exchange Online (Microsoft Graph). Copy the values from your app registration in Microsoft Entra.
Setting | Description |
|---|---|
Directory (tenant) ID | The tenant ID or a verified domain of your Microsoft 365 organization, for example |
Application (client) ID | The application (client) ID of the app registration. |
Client secret | The client secret value of the app registration. |
Login endpoint | The default is |
Microsoft Graph endpoint | The default is |
Exchange on-premises credentials
Available only when Exchange type is Exchange on-premises (EWS).
Setting | Description |
|---|---|
EWS endpoint URL | The EWS address, usually ending in |
Service account username | The impersonation service account, not an end user. Include the domain when required, for example |
Service account password | The password of the service account. |
Authentication method | NTLM (default) or Basic. NTLM is required when Extended Protection is on. Select Basic for older servers that still allow it, or when Rocket.Chat runs in FIPS mode. |
Certificate authority | Optional. The certificate authority that issued the Exchange server's certificate, in PEM format, including the |
Verify server certificate | On by default. Keep it on. Turning it off exposes the connection to interception. |
Step 4: Save and test the connection
Click Save changes.
At the top of the page, click Test connection. Connected to Exchange successfully. confirms the connection. For other messages, see Troubleshooting.
Ask a user to confirm that syncing works: they open the Outlook Calendar panel and click Sync. If contacts sync is on, they also open Call history & contacts → Contacts and click Sync.
Test connection is available only when Enabled is on, Integration mode is Server-to-server (all platforms), and there are no unsaved changes.
Test connection checks the endpoint and the credentials, but doesn't read any user's mailbox. With Exchange Online, it doesn't check the API permissions or the access policy. With Exchange on-premises, it doesn't check the ApplicationImpersonation role or whether EWS is enabled for users' mailboxes. Problems there show up when a user syncs, as "The credentials are valid but not allowed to read mailboxes." That's why you ask a user to sync after testing.
How syncing works
Matching users to mailboxes: Rocket.Chat reads the Exchange mailbox whose address matches each user's verified email address. Bots and apps, users with the guest role, federated or remote users, deactivated users, and users without a verified email address aren't synced.
Schedule: Calendars are read on the Calendar sync interval, every hour by default. Contacts are read at 03:00 server time on the Contacts sync interval, once a day by default. Users can click Sync for an immediate update.
What's read: Only each user's default calendar. Secondary, shared, and subscribed calendars aren't read.
Read only: Rocket.Chat never writes to Exchange. Meetings synced by the server can't be edited or deleted in Rocket.Chat; users change them in Outlook.
Past meetings: Meetings are kept after they leave the sync window.
Desktop app: In Server-to-server mode, the desktop app no longer offers the Outlook sign-in, so the two modes never sync at the same time.
License changes: If the license no longer includes the integration, synced meetings and Outlook contacts are hidden, not deleted. Contacts that users created in Rocket.Chat keep working.
Switching modes and Exchange types
Changing Integration mode, turning the integration off, or changing Exchange type affects synced data. Some of these changes delete meetings, so check what happens before you switch:
From Legacy to Server-to-server: The desktop app stops syncing, because Rocket.Chat no longer sends it the Exchange URL. With Exchange on-premises (EWS), the first sync removes the meetings that the desktop app had imported inside the sync window, so they don't appear twice. Older meetings stay. With Exchange Online (Microsoft Graph), meetings that the desktop app imported earlier aren't removed.
From Server-to-server back to Legacy, or turning the integration off: Synced meetings that haven't started yet are deleted, and each user's Busy status is recalculated. Meetings that already started or ended stay as history. Synced Outlook contacts aren't deleted. Users who opened the desktop app while Server-to-server was on need to sign in to Exchange again, because the app cleared their stored credentials.
Changing Exchange type (Microsoft Graph to EWS, or back): The next sync starts from scratch for every mailbox. Contacts are read again from the new source, and favorites that users set in Rocket.Chat on Exchange Online contacts are lost.
Use the Outlook calendar
In Server-to-server mode, users don't need to sign in. Their calendar syncs automatically.
Open any room except a direct message. The Outlook Calendar option isn't available in direct messages.
Click the kebab menu (⋮) in the room header and select Outlook Calendar.
The Outlook Calendar panel lists meetings from the start of today until 24 hours from now, including meetings that already happened today. It also shows how often syncing occurs and how many days into the future it covers. Meetings further ahead are synced and appear in the panel once they're within the next 24 hours.
At the bottom of the panel, users can:
Click Sync to read their mailbox now instead of waiting for the next scheduled sync.
Click Settings to open their calendar settings.
Click Open Outlook to open Outlook in the browser. This button appears when an administrator has set the Outlook URL.
While a meeting runs, the user's status changes to Busy, and it returns to the previous status when the meeting ends. Meetings marked as Free in Outlook don't change the status.
If a user's email address in Rocket.Chat isn't verified, no mailbox can be matched to their account. They need to verify their email address and sync again.
Calendar settings
In the Outlook Calendar panel, click Settings to change these options:
Event notifications: On by default. Shows a notification at the reminder time set on the meeting in Outlook, for example 15 minutes before it starts. Clicking it opens the meeting details. Meetings without a reminder in Outlook don't notify, and no notification is shown while the user's status is Busy.
Contacts and caller identification
When Sync personal contacts is on, users see their Outlook contacts in Call history & contacts → Contacts, next to the contacts they create in Rocket.Chat. Outlook contacts are read only; users change them in Outlook. When a call comes in from an external number, Rocket.Chat looks for the number in the user's contacts and shows the contact's name, in the call and in the call history.
Match callers by normalized phone number is in Manage → Workspace → Settings → Team voice calls (VoIP) → SIP integration, and it's on by default.
On: When the caller's number includes a country code, Rocket.Chat converts it to the international E.164 format before looking it up. It then matches contacts saved with any spacing or punctuation, for example
+49 30 1234567and+49-30-1234567. A caller number without a country code is matched exactly as the phone system sends it.Off: Rocket.Chat looks for the number exactly as the phone system sends it. A contact saved in another format isn't matched.
Save the numbers of contacts you create in Rocket.Chat with their country code, for example +49 30 1234567. A number saved without one can only match a caller exactly as written. For Outlook contacts saved without a country code, set Default region for phone numbers in the Microsoft Exchange settings.
For details, see:
Platform support
Platform | Server-to-server mode | Legacy mode |
|---|---|---|
Desktop | Panel with Sync, Busy status, reminders | Panel with sign-in and Sync, Busy status, reminders |
Web | Panel with Sync, Busy status, reminders | Panel with the meetings the user's desktop app imported, read only (no sign-in or Sync), Busy status, reminders |
Mobile | Busy status | Busy status, from the meetings the user's desktop app imported |
Meeting reminders are browser and desktop notifications. They appear only while Rocket.Chat is open in a browser or the desktop app, and only if notifications are allowed for it. They aren't sent to mobile devices.
Limitations
General
Rocket.Chat only reads from Exchange. Nothing is written back to Outlook.
The integration doesn't sync Microsoft Teams presence.
Busy status is based only on calendar event times. It doesn't detect whether a user actually joins or leaves a meeting, and it doesn't consider working hours.
Only the Busy status is supported.
Users aren't set to Busy during Rocket.Chat calls or meetings.
Test connection doesn't read any user's mailbox, so it doesn't check mailbox permissions: the API permissions and access policy with Exchange Online, or the impersonation role with Exchange on-premises.
Calendar
Only the default calendar is read.
The sync window is at most 7 days ahead, and the scheduled sync runs at most once an hour.
Contacts
Only personal contacts are synced. The global address list and public or shared folders aren't.
With Exchange Online, Outlook favorites aren't synced, and favorites set in Rocket.Chat are lost when a contact moves to another address book or the workspace switches to EWS.
Contact photos larger than 500 kB are skipped.
With Exchange on-premises, Outlook on the web can't set contact categories or photos. Users need Outlook desktop or a mobile client for that.
Exchange on-premises (EWS)
NTLM isn't available when Rocket.Chat runs in FIPS mode, because FIPS forbids the algorithms NTLM requires. Use Basic over HTTPS. A FIPS deployment where Exchange also disables Basic has no supported option. Exchange Online (Microsoft Graph) isn't affected.
Kerberos isn't supported.
Domains that block NTLM with the Restrict NTLM policy can't use NTLM.
With Extended Protection, a load balancer that terminates TLS in front of Exchange makes authentication fail. The error looks like a wrong password.
Exchange Online (Microsoft Graph)
National clouds need the matching login and Graph endpoints. Other hosts are refused.
Troubleshooting
Test connection messages
When you click Test connection, Rocket.Chat shows one of the following messages:
Message | What to check |
|---|---|
The connection settings are incomplete. | Fill in every field in the credentials section for your Exchange type, then save. |
Exchange rejected the credentials. | The client secret and its expiry date, or the service account username and password. With EWS behind a load balancer, also check that TLS isn't terminated before Exchange. |
Could not reach the Exchange endpoint. | EWS endpoint URL, DNS, firewall, proxy, and the Certificate authority and Verify server certificate settings, including a Certificate authority value pasted without its line breaks. |
The configured host is not a Microsoft endpoint. | Reset Login endpoint and Microsoft Graph endpoint to their defaults, or enter the endpoints Microsoft publishes for your national cloud. |
NTLM is not available because this workspace runs in FIPS mode, which forbids the algorithms NTLM requires. | Set Authentication method to Basic, if Exchange accepts it over HTTPS. |
Exchange is rate limiting requests. | Wait a few minutes, then test again. |
Exchange answered in an unexpected way. | The workspace logs. A proxy error page is a common cause. |
Server-to-server sync is turned off. | Enabled is on and Integration mode is Server-to-server (all platforms). |
A user's calendar stays empty
If Test connection succeeds but a user's calendar or contacts don't sync, or a sync fails with "The credentials are valid but not allowed to read mailboxes.", go through these checks:
Check that the user's email address in Rocket.Chat is verified and matches their Exchange mailbox.
With Microsoft Graph, check that the API permissions show Granted and that the access policy includes the user's mailbox.
With EWS, check that the impersonation role covers the user's mailbox and that EWS isn't blocked for it.
Legacy mode (deprecated)
Legacy mode is deprecated from Rocket.Chat 9.1 and will be removed in Rocket.Chat 10.0. Use Server-to-server mode instead.
In Legacy mode, each user signs in to Exchange from the Rocket.Chat desktop app, and calendars sync only on the desktop app. Legacy mode works with Exchange on-premises through EWS. It doesn't support Microsoft 365 accounts through Microsoft Graph.
Configure Legacy mode
Go to Manage → Workspace → Settings → Microsoft Exchange.
Turn on Enabled, set Integration mode to Legacy (per user, desktop app only), and set the other general settings you need.
Expand Legacy (per user, desktop app only) and set the following:
Exchange URL: The host URL of your Exchange server, for example
https://owa.example.com/. To find it, open Outlook on the web and copy the host from your browser's address bar.
Meeting url regular expression: A regular expression that detects meeting links, such as Zoom, Teams, or Webex, in event descriptions. Rocket.Chat uses the first matching group that contains a valid URL, decodes HTML-encoded URLs automatically, and shows a Join Meeting option for it. In most cases, keep the default value.
Domain to Outlook URL mapping: Optional. Defines different Exchange and Outlook URLs for different email domains, for environments with several Exchange servers. For example:
{ "abc.de": { "Enabled": true, "Exchange_Url": "https://exchange.abc.de", "Outlook_Url": "https://exchange.abc.de/#path=/calendar/view/Month" }, "xyz.de": { "Enabled": true, "Exchange_Url": "https://exchange.xyz.de", "Outlook_Url": "https://exchange.xyz.de/#path=/calendar/view/Month" } }All three parameters are optional for each domain. If Enabled is already on for the workspace, you can leave it out.
Click Save changes.
Connect and sync an Outlook calendar
In the Rocket.Chat desktop app, open any room except a direct message. The Outlook Calendar option isn't available in direct messages.
Click the kebab menu (⋮) in the room header and select Outlook Calendar.
Click Login and sign in with your Outlook account.
Click Sync to retrieve your latest events.
From the panel, users can view upcoming meetings, join meetings through detected meeting links, open Outlook in the browser, and refresh the event list.
.png)
In the panel, click Calendar settings to change these options:
Event notifications: On by default. Shows a notification at the reminder time set on the meeting in Outlook, for example 15 minutes before it starts. Clicking it opens the meeting details. Meetings without a reminder in Outlook don't notify, and no notification is shown while the user's status is Busy.
Outlook authentication: Click Disable to disconnect your Outlook account and remove your stored credentials. You need to sign in again to reconnect.
Troubleshoot Legacy mode
If the calendar panel fails to load or events don't appear:
Reload the Rocket.Chat desktop app.
Check that Exchange URL and Outlook URL are correct.
Check that the user's Outlook account has access to the configured Exchange server.
To check which Exchange URL the desktop app uses:
Turn on Developer Mode in the desktop app:
macOS: In the system menu bar, click Help → Developer Mode.
Windows/Linux: In the application menu, click Help → Developer Mode.
Right-click the workspace icon in the left sidebar and select Server Info.
In the Server Information panel, find the Outlook Exchange URL field.