Create External Credentials for Google Drive (Beta)

To ingest data from Google Drive to Data Cloud, set up an external credential for your Google Drive.

We recommend using the built-in Google Drive Data Cloud OAuth provider. If you prefer to use your own, create the OAuth-based authentication for Google in Setup before completing these steps.

Note the following about setting up the OAuth client ID crendentials in Google:

  • Set the application type as Web application.
  • Note the Client ID and Client Secret.
  1. From Setup, in the Quick Find box, enter Named Credentials, and then select Named Credentials.

    namedcredential definition

  2. On the External Credentials tab, click New.

    1. Enter a label and a name for your external credential. The name can’t contain spaces. You can use underscores.

    2. For Authentication Protocol, select OAuth 2.0.

    3. For Authentication Flow Type, select Browser Flow.

    4. For Authentication Provider, select Google Drive Data Cloud or the provider you created.

    5. Click Save.

  3. Add principal to external credentials

    1. In the external credentials that you created, under Principals, click New.

    2. Enter the parameter name. You can include spaces.

    3. For Identity Type, select Named Principal.

    4. For Scope, choose one of these options:

      1. If you're using the Google Drive Data Cloud OAuth provider, leave this field empty.
      2. For unstructured data ingestion, if you created your own OAuth Provider using OAuth-based authentication for Google, add the scope, openid https://www.googleapis.com/auth/drive.readonly.
    5. Set the Sequence Number to 1.

    6. Click Save.

  4. Authenticate your external credentials.

    1. Under Principals, from the Actions dropdown menu, select Authenticate.

    2. To connect Data Cloud to the connector, click Allow.

  5. Define the named credential.

    1. In the Named Credentials Tab, click New and enter a label and a name. The name can't contain spaces, but you can use underscores.

    2. For the URL, enter https://google.com.

    3. For external credentials, select the credential you created.

    4. Click Save.

  6. Enable external credential access.

    1. From Setup, in the Quick Find box enter Profiles and then select it.

    2. Click System Administrator

    3. On the Enable External Credential Principal Access tab, click Edit.

    4. Add the external credentials principal that you created to the Enabled External Credentials Principals column.

    5. Click Save.