Google Drive
  • 18 Aug 2024
  • 1 Minute to read
  • Contributors
  • Dark
    Light

Google Drive

  • Dark
    Light

Article summary

Connection

The Google Drive connection is established through SSO with an OAuth2 authorization flow. This process involves using the connecting user's credentials and requires read scopes during the setup:

<https://www.googleapis.com/auth/drive.photos.readonly>
<https://www.googleapis.com/auth/contacts.readonly>
<https://www.googleapis.com/auth/drive.readonly>
<https://www.googleapis.com/auth/drive.metadata.readonly>
<https://www.googleapis.com/auth/drive.activity.readonly>
openid
email
profile

Service Account

Utilizing a Service Account connection is suitable when you prefer a connection that isn't tied to a specific user but requires additional configuration.

  1. Creating a Service Account

    1. Refer to the instructions here.

    2. Enable the Google Drive API and Admin SDK APIs (if RLP is required).

    3. Configure the OAuth Consent screen with the specified scopes (including RLP scopes, if applicable).

    4. Download the JSON credentials for your Service Account.

  2. Sharing Drives/Folders/Files

    1. Each Service Account is associated with an email address visible on the IAM screen in your GCP project here.

    2. Copy the email address and use it to grant access to drives and folders, allowing them to be indexed in Unleash.

Please note that a self-serve connection screen is unavailable for Service Account connections. If you wish to establish this connection, kindly contact your Unleash representative for assistance. Share the JSON credentials obtained earlier to facilitate the setup on the backend.

Supported Resources

  • Files

  • Folders

  • Contacts

Filtering and Selection

When connecting, you can refine the connected account's index scope by selecting specific Folders or shared Drives. However, it's important to note that this does not alter the token's (credentials) scopeā€”the token retains access to all available files.

Sync

  • Initial Connection: The integration fetches all files from the selected folders/shared drives

  • Post-Initial Sync: Updates for files are captured by the integration every 15 minutes.

  • Near Real-Time Sync- The integration also watches for updates and syncing changes near real-time.

Resource Level Permissions (RLP)

RLP is implemented in Google Drive to ensure shared links adhere to the set permissions within Google Drive. The provided documentation provides more information about RLP Links and other link types. RLP enforces permissions at the drive level.

Connection

To connect Google Drive as RLP, a user with read access to the Google Workspace directory is required.

Syncing the directory allows the integration to understand the hierarchy of users and groups, match it to Unleash users, and enforce permissions.

Additional scopes are required for RLP Connection:

<https://www.googleapis.com/auth/admin.directory.group.readonly>
<https://www.googleapis.com/auth/admin.directory.user.readonly>
<https://www.googleapis.com/auth/admin.directory.domain.readonly>


Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.