Skip to content
← Back to Command · Connectors

Command · Connector setup

Set up the Google Drive Connector

Connect a Google account to raia Command and link Google Drive folders to project folders for one-time or recurring synchronization.

Video walkthrough is available in English.

01

Overview

The Google Drive connector allows you to link a Google Drive folder to a project folder in raia Command.

Files can be imported once or synchronized on a recurring basis.

Before starting, sign in with the company-managed Google account that will own the Google Cloud project. The account must have permission to create a project, enable APIs, and create OAuth credentials.

02

Open the Google Drive connector

  1. 01

    Log in to raia Command.

  2. 02

    Open Connectors from the left-hand menu.

  3. 03

    Select Google Drive.

  4. 04

    Expand the setup instructions.

The setup instructions contain the exact Authorized redirect URI required for the Google OAuth client.

03

Create a Google Cloud project

Click the Google Cloud Credentials link in the raia Command setup instructions.

  1. 01

    Create a new project.

  2. 02

    Enter a recognizable project name, such as raia Command Connector.

  3. 03

    Select the appropriate organization.

  4. 04

    Click Create.

Make sure the new project is selected before continuing.

04

Configure the OAuth consent screen

Open the Google Auth Platform or OAuth consent screen configuration and click Get started.

Enter:

  • An application name, such as raia Command
  • A user support email
  • A developer contact email

Choose the audience that matches your organization.

For a company-managed Google Workspace account, Internal is normally appropriate. External with Testing status may also be used, but each Google account that will connect must be added under Test users.

Complete the consent-screen setup and accept Google’s required terms.

05

Create the OAuth client

Open Clients or Credentials and create a new OAuth client.

Configure it as follows:

  • Application type: Web application
  • Name: raia Command

Do not select Desktop application or Service account.

Under Authorized redirect URIs, add this exact URL:

https://spqueahmobhaqgipqkyo.supabase.co/functions/v1/google-drive-oauth-callback

Use the exact redirect URI

Copy the complete Authorized redirect URI from raia Command. A different URL, missing character, additional space, or trailing character will prevent Google from completing the authorization.

Click Create. Google will generate:

  • Client ID
  • Client Secret
06

Save the OAuth credentials in raia Command

Return to the Google Drive connector. Under OAuth Credentials:

  1. 01

    Paste the Client ID.

  2. 02

    Paste the Client Secret.

  3. 03

    Click Update.

The credentials are saved for the raia Command organization.

07

Enable the Google Drive API

Return to the same Google Cloud project.

  1. 01

    Open APIs & Services.

  2. 02

    Select Library.

  3. 03

    Search for Google Drive API.

  4. 04

    Open the result.

  5. 05

    Click Enable.

The OAuth consent configuration must allow the following scopes requested by the connector:

scopes
drive.readonly
userinfo.email
openid

The Google Drive scope is read-only.

08

Connect a Google account

Return to raia Command and locate Connected Accounts.

  1. 01

    Click Connect Google Account.

  2. 02

    Select the Google account that should access the Drive folders.

  3. 03

    Review the requested permissions.

  4. 04

    Click Continue or Allow.

After authorization, the account will appear under Connected Accounts.

Additional Google accounts can be connected separately when needed.

09

Link a Google Drive folder

Before linking the folder, create the destination project and folder in raia Command.

Under Linked Folders:

  1. 01

    Select the connected Google account.

  2. 02

    Paste the Google Drive folder URL or folder ID.

  3. 03

    Select the destination project.

  4. 04

    Select the destination project folder.

  5. 05

    Select the sync mode.

Available sync modes include:

  • One-time import
  • Recurring synchronization

Click Link Folder.

10

Start and verify the sync

After the folder is linked, click Sync now or Start sync. Confirm that:

  1. 01

    The Google account displays as connected.

  2. 02

    The Drive folder displays as linked.

  3. 03

    The sync begins successfully.

  4. 04

    The imported files appear in the selected project folder.

  5. 05

    The selected sync mode is shown correctly.

The sync runs in the background and may take some time depending on the size of the folder.

11

Related