Loading

Lightning Sync for Google: 'We can't connect with Google Contacts or Calendar' Error (OAuth 2.0 Scope Issue)

Publiseringsdato: Jun 28, 2026
Beskrivelse

Lightning Sync is a Salesforce feature that synchronizes contacts and calendar events between Salesforce and Google Workspace (formerly G Suite). Salesforce administrators can run the Lightning Sync connection test to verify that connectivity between Google and Salesforce is working correctly.
When running the Lightning Sync connection test, you may encounter one or both of the following error messages:

  • "We can't connect with Google Calendar."
  • "We can't connect with Google Contacts."

These errors most commonly occur when the required OAuth 2.0 (Open Authorization) scopes in the Google Admin Console are missing or configured incorrectly. OAuth 2.0 is the authentication protocol that Salesforce uses to access Google Contacts and Google Calendar data on behalf of users. Without the correct scopes in Domain Wide Delegation, Salesforce cannot authenticate with Google APIs.
Important: Lightning Sync is not available for new Salesforce customers as of Winter '21. If you are an existing Lightning Sync customer, follow the resolution steps below to fix scope-related connectivity issues.

Løsning

The Lightning Sync connection test checks several points of connectivity between Salesforce and Google Workspace. The most common cause of this error is missing or incorrectly configured OAuth 2.0 scopes under Domain Wide Delegation in the Google Admin Console.
Follow the steps below to review and correct the required scopes.

Step 1: Access Google Admin Console Domain Wide Delegation

  1. Log in to the Google Admin Console.
  2. On the Admin Console Home page, go to Access and data control, then select API controls.
  3. Under Domain Wide Delegation, click Manage Domain Wide Delegation.
  4. Review the Client IDs listed and verify that the following OAuth 2.0 scopes are configured.

Required OAuth 2.0 Scopes for Google Contacts

The following scopes must be present for Google Contacts to sync with Salesforce:

Required OAuth 2.0 Scopes for Google Calendar

The following scope must be present for Google Calendar to sync with Salesforce:

  • <REDACTED>

Step 2: Verify Google Calendar and Contacts APIs Are Enabled

If the OAuth scopes are correctly configured but the error persists, verify that the Google Calendar and Google Contacts APIs are enabled in your Google Workspace account. Disabled APIs will also cause connectivity failures regardless of scope configuration.
Review the following documentation to ensure both Google Workspace and Salesforce configuration are completed correctly: Prepare Your G Suite Account for Lightning Sync.

 

Prepare Your G Suite Account for Lightning Sync.

Please Note: Lightning Sync is not available for new customers as of Winter ’21.
https://help.salesforce.com/s/articleView?id=000353407&amp;amp;type=1

Knowledge-artikkelnummer

000383893

 
Laster
Salesforce Help | Article