> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stackone.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Google Drive OAuth2 - File Picker connector profile – StackOne setup guide

> Set up a connector profile using OAuth2 - File Picker for Google Drive in StackOne to allow users to link their accounts.

> [!WARNING]
>
> A Google Cloud project with Owner or Editor permissions is required to create OAuth credentials.

Select Actions to adjust the guideSome actions may require additional configuration in the provider to be accessible. Choose the actions you need and the guide will be updated.

Select all
Clear

ActionScope(s)

Loading actions...No actions match your search.

Dynamic Guide URL

Copy URL

Scopes Selected

<pre role="textbox" aria-readonly="true" tabIndex="0" />

Separator

Copy scopes

## Create a Google Cloud OAuth client and API key

Set up a Google Cloud project with an OAuth client for StackOne. The File Picker integration also requires an App ID and API key.

**1. Create or select a project**

Sign in to your [Google Cloud Console](https://console.cloud.google.com/), then open the project picker at the top of the page.

<ul>
  <li>**New project:** Click **New project**, fill in **Project name**, **Organization** and **Parent resource**, then click **Create**. Select the new project in the project picker.</li>
  <li>**Existing project:** Select it in the project picker.</li>
</ul>

**2. Enable the Google Drive API**

Open **APIs & Services** > **Library**.

<ul>
  <li>Search for `Google Drive API`.</li>
  <li>Click **Google Drive API**.</li>
  <li>Click **Enable**. If it shows **Manage**, it's already enabled.</li>
</ul>

**3. Enable the Google Picker API**

Open **APIs & Services** > **Library**.

<ul>
  <li>Search for `Google Picker API`.</li>
  <li>Click **Google Picker API**.</li>
  <li>Click **Enable**. If it shows **Manage**, it's already enabled.</li>
</ul>

**4. Enter the app information**

Open **APIs & Services** > **OAuth consent screen** to open the Google Auth Platform dashboard.

<ul>
  <li>Click **Get started**. If the **OAuth Overview** page opens instead, open **Branding** from the sidebar.</li>
  <li>**App name**: `StackOne Integration`</li>
  <li>**User support email**: Email address for user inquiries</li>
  <li>Click **Next**.</li>
</ul>

**5. Select the audience**

Choose the user type for your application.

<ul>
  <li>**Internal**: Only users within your Google Workspace organization can authorize (no app verification required)</li>
  <li>**External**: Any Google account can authorize (requires app verification for production use)</li>
  <li>Click **Next**.</li>
</ul>

**6. Enter contact information**

Google sends notices about changes to your project to these addresses. If you opened **Branding**, the field is under **Developer contact information** on the same page.

<ul>
  <li>**Email addresses**: Email addresses for project notices</li>
  <li>Click **Next**.</li>
</ul>

**7. Accept the user data policy**

Review your settings.

<ul>
  <li>Agree to the Google API Services User Data Policy.</li>
  <li>Click **Create**.</li>
</ul>

**8. Add the scopes**

Enables actions: Check Permissions, Copy File, Create Comment, Create File, Create Permission, Create Reply, Create Shared Drive, Delete Comment, Delete File, Delete Permission, Delete Reply, Delete Revision, Delete Shared Drive, Download Unified File, Empty Trash, Generate IDs, Get About, Get Access Proposal, Get Changes Start Page Token, Get Comment, Get File, Get Permission, Get Reply, Get Revision, Get Shared Drive, Get Unified Credentials, Get Unified Drive, Get Unified File, Get Unified Folder, Get Unified Role, Hide Shared Drive, List Access Proposals, List Changes, List Comments, List Files, List Permissions, List Replies, List Revisions, List Shared Drives, List Unified Drives, List Unified Files, List Unified Folders, List Unified Resource Types, List Unified Resource Users, List Unified Roles, Resolve Access Proposal, Unhide Shared Drive, Update Comment, Update File, Update Permission, Update Reply, Update Revision, Update Shared Drive, Upload File (Multipart), Upload File (Resumable), Upload File (Simple), Upload Unified File

In Google Auth Platform, open **Data Access**.

<ul>
  <li>Click **Add or Remove Scopes**.</li>
  <li>Under **Manually add scopes** in the **Update selected scopes** side panel, paste each scope listed.</li>
  <li>Click **Add to table**.</li>
  <li>Click **Update**.</li>
  <li>On the **Data Access** page, click **Save**.</li>
</ul>

<ul>
  <li>
    [https://www.googleapis.com/auth/drive](https://www.googleapis.com/auth/drive)
  </li>

  <li>
    [https://www.googleapis.com/auth/drive.readonly](https://www.googleapis.com/auth/drive.readonly)
  </li>

  <li>
    [https://www.googleapis.com/auth/drive.file](https://www.googleapis.com/auth/drive.file)
  </li>

  <li>
    [https://www.googleapis.com/auth/drive.metadata.readonly](https://www.googleapis.com/auth/drive.metadata.readonly)
  </li>
</ul>

**9. Create the OAuth client**

Open **APIs & Services** > **Credentials**.

<ul>
  <li>Click **Create credentials**.</li>
  <li>Select **OAuth client ID**.</li>
  <li>**Application type**: **Web application**</li>
  <li>**Name**: `StackOne Drive Integration`</li>
  <li>Under **Authorized redirect URIs**, click **Add URI**.</li>
  <li>Enter the **Callback URL** from your Connector Profile.</li>
  <li>Click **Create**.</li>
</ul>

**10. Copy the Client ID and Client Secret**

In the dialog that opens, copy the **Client ID** and **Client Secret** into your Connector Profile.

**11. Copy the App ID**

The App ID is your Google Cloud project number. Open **IAM & Admin** > **Settings** from the left sidebar.

<ul>
  <li>Copy the **Project number** into your Connector Profile.</li>
</ul>

**12. Create an API key**

Open **APIs & Services** > **Credentials**. The key must be restricted to both the Google Picker API and the Google Drive API.

<ul>
  <li>Click **Create credentials**.</li>
  <li>Select **API key** to open the **Create API key** dialog.</li>
  <li>**Name**: `StackOne File Picker`</li>
  <li>**Select API restrictions**: **Google Picker API** and **Google Drive API**. If either is missing, enable it in **APIs & Services** > **Library** first.</li>
  <li>**Application restrictions**: **None**</li>
  <li>Click **Create**.</li>
</ul>

**13. Copy the API key**

In the **API key created** dialog, copy the key under **Your API key** into your Connector Profile, using the copy icon next to it.

<ul>
  <li>Click **Close**.</li>
</ul>

## Create the StackOne Connector Profile

**1. Create a Connector Profile**

Enable the connector and create a Connector Profile in your project. See [Setup Connector Profile](https://docs.stackone.com/gateway/quickstart.md#setup-connector-profile).

**2. Link an Account**

Once the Connector Profile is created, continue to [link an account](https://docs.stackone.com/connectors/googledrive/guides/link-account/oauth2-file-picker.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.