---
schema_version: "1"
id: 20767235d29be0da8cdb600e34bf2d38627901b7d808f25d687cf8958000d762
title: Connect Salesforce and Microsoft® Exchange Using OAuth 2.0
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/sales/264-0-0/lightning_sync_admin_exch_connect_w_oauth.md
canonical_url: https://help.salesforce.com/s/articleView?id=sales.lightning_sync_admin_exch_connect_w_oauth.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: f86d2a5995d1358e0522fbd82870835b98b7231a056b506f651442ad32f83384
description: Give Salesforce access to Microsoft Exchange Online using OAuth 2.0. To complete setup, you need a Microsoft Office 365® account and help from your Office 365 global administrator to provide credentials for your company’s account.
products:
  - Sales Cloud
  - Cross Cloud
  - Service Cloud Voice
release: "264"
---
# Connect Salesforce and Microsoft® Exchange Using OAuth 2.0

Give Salesforce access to Microsoft Exchange Online using OAuth 2.0. To complete setup, you need a Microsoft Office 365® account and help from your Office 365 global administrator to provide credentials for your company’s account.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available to sync records from: Salesforce Classic, Lightning Experience, and the Salesforce mobile app</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available to set up from: Salesforce Classic and Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Professional</strong>, <strong>Enterprise</strong>, <strong>Performance</strong>, <strong>Unlimited</strong>, and <strong>Developer</strong> Editions with Sales Cloud, Service Cloud, and Lightning Platform</td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d119097e81">User Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d119097e81 ">To access and edit Lightning Sync setup:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d119097e81 ">
              <p>Manage Users</p>
              <p style="margin-bottom:0;">AND</p>
              <p style="margin-bottom:0;">Manage Lightning Sync</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d119097e81 ">To prepare Exchange Online to communicate with Salesforce:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d119097e81 ">Global administrator access to your company’s Office 365 account</td>

          </tr>
        </tbody>
      </table>

![Important](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-sales-sales_productivity-264-0-0-production-enus/b2f6c36a-fa61-4a3c-9752-032ce1818a69/images/icon_important.png)

Important

Starting in Winter ‘21, [Lightning Sync isn’t available](https://help.salesforce.com/apex/HTViewSolution?urlname=Lightning-Sync-End-of-Sale&language=en_US) to new Salesforce customers. Use Einstein Activity Capture to sync events, contacts, and emails between your connected account and Salesforce.

If you have Lightning Sync, use the [migration tool](https://help.salesforce.com/s/articleView?id=sales.lightning_sync_move_parent.htm&type=5&language=en_US) to move to [Einstein Activity Capture](https://help.salesforce.com/articleView?id=einstein_sales_aac.htm&language=en_US) before Lightning Sync retires in 2027. Before you migrate, review [Compare Einstein Activity Capture and Lightning Sync](https://help.salesforce.com/s/articleView?id=sales.email_integration_admin_eac_vs_lightning_sync.htm&language=en_US) to understand what to expect when you migrate.

If your org is exempt from migration because of a licensing issue or if your org doesn’t support Einstein Activity Capture, you won’t see the migration tool in Lightning Sync.

1. From Setup, enter Sync in the Quick Find box, then select **Outlook Integration and Sync**.
2. Select **Let users sync contacts, events, or both between Microsoft Exchange and Salesforce** to enable Lightning Sync.
3. Click **Let users sync contacts, events, or both between Microsoft Exchange and Salesforce** to see additional setup steps.
4. Select **OAuth 2.0** as your preferred connection method.
5. Have your Office 365 global administrator log in to your Office 365 account.
6. When the Microsoft Azure™ login page opens, accept Lightning Sync access to your account by following the prompts until you’re directed back to Salesforce.
7. From Salesforce, under Provide your Office 365 ID, click **Connect**.

#### See Also

- [OAuth 2.0 Connection for Microsoft Users](https://help.salesforce.com/s/articleView?id=sales.lightning_sync_admin_security_connection_oauth.htm&release=264.0.0&type=5 "Connecting with OAuth 2.0 is available for Lightning Sync users working from Microsoft® Office 365®. To learn more, see the Lightning Sync system requirements.")