---
schema_version: "1"
id: 2e002e6bf1f1f0e8efd8d9f9478b81078f5a7f96b2f288e6e3fbe402628d1773
title: Create an Authentication Provider for Google Drive
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/experience/264-0-0/admin_files_connect_google_auth.md
canonical_url: https://help.salesforce.com/s/articleView?id=experience.admin_files_connect_google_auth.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 50c3411e4ae988189ad13698153bca81a1599b4fcde1766809a4ab1d265d0e2d
description: To use Google Drive as an external data source, create an authentication provider for it in Salesforce. The process begins with creating a related project in the Google Developers console.
products:
  - Experiences
release: "264"
---
# Create an Authentication Provider for Google Drive

To use Google Drive as an external data source, create an authentication provider for it in Salesforce. The process begins with creating a related project in the Google Developers console.

### 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 in: Salesforce Classic</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</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="d32625e73">User Permissions
              Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d32625e73 ">To create authentication providers:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d32625e73 ">
              <p>Customize Application</p>
              <p>AND</p>
              <p style="margin-bottom:0;">Manage Auth. Providers</p>
            </td>

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

For detailed visuals, tips, and troubleshooting, see the Files Connect [_Setup Guide_](https://org62.my.salesforce.com/sfc/p/000000000062/a/30000000TwBg/oY6nj5H8L_c0djY2t01Q5s39DqCk82b5lLKTOl9Aeuc) and [_User Guide_](https://org62.my.salesforce.com/sfc/p/000000000062/a/30000000TwBb/4P94FDKJU8TLPlV9UwgNyhFIeRb8cjoHnsneKTbtk9Q).

1. Using the credentials of your Google App for Work admin account, log in to [https://console.cloud.google.com](https://console.cloud.google.com).
2. In the title bar, expand **Select Project** and click **Create Project**.
3. Enter a project name and location, and click **Create**.
4. In the project dashboard, click the menu icon in the upper left, and then click **APIs & Services**.
5. In the API manager, go to the Library tab and search for Google Drive API.
6. In the search results, click **Google Drive API**, and then click **Enable API**.
7. In the menu on the left, click **Credentials**.
8. In the OAuth Consent Screen tab, enter a valid email address and application name, and click **Save**.
9. In the Credentials tab, click **Add credentials**, and select OAuth client ID.
10. Select Web application, and click **Create**.
11. Copy the client ID and client secret values to a text file.
    
    Use these values next, when you create an authentication provider in Salesforce.
12. In Setup, enter Auth. Providers in the Quick Find box, then select **Auth. Providers**.
13. Click **New**.
14. For Provider Type, select **OpenID Connect**, and then set the following options:
    
    - Name — Enter the name you want to appear in Salesforce.
    - URL Suffix — Enter the suffix at the end of the URL path. For example, in the path, https://login.salesforce.com/services/authcallback/00Dx00000000001/MyGoogleProvider, the suffix is “MyGoogleProvider”
    - Consumer Key — Enter the client ID you copied when creating the Google project.
    - Consumer Secret — Enter the client secret you copied when creating the Google project.
    - Authorize Endpoint URL —Enter https://accounts.google.com/o/oauth2/auth?access\_type=offline&approval\_prompt=force
    - Token Endpoint URL — Enter https://accounts.google.com/o/oauth2/token
    - Default Scopes — Enter openid email profile https://www.googleapis.com/auth/drive
15. Click **Save**.
16. At the bottom of the Auth. Provider detail page, copy the Callback URL entry to a text file. Use this URL when you edit the Google project next.
17. In the API Manager, in the menu on the left, click **Credentials**.
18. Click the previously created web app.
19. In the Authorized Redirect URIs section, add the Callback URL you copied when creating the authentication provider in Salesforce, and click **Save**.