---
schema_version: "1"
id: 8aa6bef650370605826ad1742c40fdb416fa6f20a8a51fbefddbd36facad7382
title: OAuth 2.0 Connection for Microsoft Users
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/sales/264-0-0/lightning_sync_admin_security_connection_oauth.md
canonical_url: https://help.salesforce.com/s/articleView?id=sales.lightning_sync_admin_security_connection_oauth.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 0ebff7521412b5a904259a2f6ff577b181cdbc05940d8f2bcfde76657aa36898
description: 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.
products:
  - Sales Cloud
  - Cross Cloud
  - Service Cloud Voice
release: "264"
---
# OAuth 2.0 Connection for Microsoft Users

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.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
      <colgroup>
        <col style="width:33.33333333333333%">
        <col style="width:33.33333333333333%">
        <col style="width:33.33333333333333%">
      </colgroup>
      <thead class="slds-text-title_caps ">
        <tr class="">
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d97655e38">Requirement</th>
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d97655e41">Why it’s required</th>
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d97655e44">Benefit to you</th>
        </tr>
      </thead>
      <tbody>
        <tr class="">
          <td data-label="Requirement" class="slds-cell-wrap" style="vertical-align:top;" headers="d97655e38 ">Lightning Sync automatically requests its scope of access to all aspects of your users’
            Exchange mailbox and its resources.</td>

          <td data-label="Why it’s required" class="slds-cell-wrap" style="vertical-align:top;" headers="d97655e41 ">While OAuth 2.0 provides access to more objects in your email service, Microsoft sets
            the breadth of that scope. Neither Salesforce nor Microsoft admins can adjust it. However,
            Lightning Sync can only read, write, and update contacts and events from users’ email
            services. Lightning Sync isn’t designed to discover or access other objects.</td>

          <td data-label="Benefit to you" class="slds-cell-wrap" style="vertical-align:top;" headers="d97655e44 ">
            <p>Minimal setup is required to connect your applications using this method.</p>
            <p style="margin-bottom:0;">This method
              provides access to users’ Microsoft contacts and events without individual user
              authentication. As a result, sync between the applications remains consistent, and data is
              reliably updated in both systems without dependency on the user.</p>
          </td>

        </tr>
        <tr class="">
          <td data-label="Requirement" class="slds-cell-wrap" style="vertical-align:top;" headers="d97655e38 ">Your company’s Microsoft admin must provide access to Microsoft Office 365 from an
            account with global administrator permissions and accept Lightning Sync access to
            Microsoft.</td>

          <td data-label="Why it’s required" class="slds-cell-wrap" style="vertical-align:top;" headers="d97655e41 ">
            <p>After electing to connect using OAuth 2.0, you’re redirected to
              https://login.microsoftonline.com to log in to your Office 365 email service. This site is
              the Azure Active Directory portal for customers on global infrastructure databases, also
              known as Global Services. From the portal, you provide your global administrator credentials
              and accept permission to let Lightning Sync access your Microsoft account. This design
              ensures that your global administrator credentials are never stored in Salesforce.</p>
            <p>Next,
              you’re redirected to the Outlook Integration and Sync page in Salesforce Setup, where your
              Microsoft Azure tenant ID is stored. Behind the scenes, Salesforce obtains an access token
              to your Microsoft account. The access token is required to gain read, update, create, or
              delete access to Microsoft contacts or events.</p>
            <p style="margin-bottom:0;"><a href="https://help.salesforce.com/articleView?id=lightning_sync_admin_exch_connect_w_oauth.htm&amp;language=en_US" target="_blank">Learn More</a></p>
          </td>

          <td data-label="Benefit to you" class="slds-cell-wrap" style="vertical-align:top;" headers="d97655e44 ">
            <p>Working hand-in-hand with the predetermined scope requirement, this method provides
              access to users’ Microsoft contacts and events without individual user authentication. This
              benefit provides a sync experience with fewer interruptions. Several measures provide
              security for your data during transfer and within Salesforce. </p>
            <ul>
              <li>By design, your Azure tenant secrets are never in transmission with the OAuth 2.0
                connection method. Instead, Salesforce handles the management of both public and private
                keys.</li>
              <li>Your Microsoft tenant ID is encrypted at rest. It’s visible only from the Outlook
                Integration and Sync page, so only Salesforce admins (or other users with Setup access) can
                see it. Plus, without signed Salesforce verification, interception of your tenant ID can’t
                provide access to your Microsoft account.</li>
              <li>The access token is securely transferred from your Microsoft account to Salesforce over
                a TLS connection. The token is encrypted, and expires every hour. New tokens are always
                transferred over a TLS connection.</li>
            </ul>
            <p style="margin-bottom:0;">Completing this process in no way provides impersonation rights to your global
              administrator account.</p>
          </td>

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

#### See Also

- [Lightning Sync System Requirements](https://help.salesforce.com/s/articleView?id=sales.exchange_sync_sys_req.htm&release=264.0.0&type=5 "Confirm that your Microsoft® Exchange-based server or Google Workspace account meet these system requirements before you set up your sales reps for Lightning Sync.")
- [See the Big Picture for Setting Up Lightning Sync for Microsoft® Exchange](https://help.salesforce.com/s/articleView?id=sales.exchange_sync_admin_implement_ex_sync.htm&release=264.0.0&type=5 "Salesforce admins can set up Lightning Sync so reps can sync contacts and events between Microsoft® Exchange and Salesforce. Salesforce admins and IT pros complete several steps, both on your Exchange server and in Salesforce.")