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

# Google Drive

> What agents can do in Google Drive at each access level, and how to connect, limit, and disconnect Google Drive.

Connect Google Drive so your agents can work in your Google Drive account. You choose an access level for each account, and Squad refuses any agent action outside that level.

## Access levels

Each Google Drive account has an access level: **Read-only**, **Read + write**, and **Full access**. Squad refuses any agent action outside that level. You can also narrow or block single agents under **Per-agent access**.

| Level                          | The connect window describes this level as                           | Actions agents can use |
| ------------------------------ | -------------------------------------------------------------------- | ---------------------- |
| **Read-only**                  | "Read and download all Drive files. Cannot upload, edit, or delete." | 44 of 103              |
| **Read + write** (recommended) | "Read, upload, and edit files."                                      | 91 of 103              |
| **Full access**                | "See, edit, create, and delete any Drive file."                      | 103 of 103             |

**Read + write** is the recommended level. The connect window selects it for you, and you can choose another level.

The Google Drive sign-in page asks you to approve full access to your account. This is expected. Squad does not narrow the sign-in. It checks every agent action against the level you chose, and it refuses actions outside that level.

## What agents can do at each level

Each level opens with a short summary in plain tasks, then lists every action it adds, grouped by what the action works on. You do not need to name actions. Ask in plain words, and the agent searches for the matching action.

<Tip>**Find an action.** Open a level and use your browser's find (Ctrl+F, or Cmd+F on a Mac) with a word from the task or part of a slug. Or ask your agent in plain words, for example "What can you do in my Google Drive account?" The agent can search the Google Drive actions for you.</Tip>

Each action shows its name, a one-line description where the Google Drive action catalog has one, and its slug. The slug is the ID that agents use when they call the action.

<AccordionGroup>
  <Accordion title="Read-only">
    Agents can use 44 of the 103 Google Drive actions at this level:

    * View and search files
    * View drives
    * View roles and permissions
    * View versions
    * View change history
    * View comments
    * View properties
    * View replies
    * View apps
    * View documents
    * Search folders
    * View forms

    All 44 actions at this level:

    <AccordionGroup>
      <Accordion title="Apps (1)">
        | Action  | What it does                                      | Slug                  |
        | ------- | ------------------------------------------------- | --------------------- |
        | Get app | Get information about a specific Drive app by ID. | `GOOGLEDRIVE_GET_APP` |
      </Accordion>

      <Accordion title="Change history (2)">
        | Action       | What it does                                          | Slug                       |
        | ------------ | ----------------------------------------------------- | -------------------------- |
        | Get change   | Get a specific change by ID from Google Drive v2 API. | `GOOGLEDRIVE_GET_CHANGE`   |
        | List changes | List the changes for a user or shared drive.          | `GOOGLEDRIVE_LIST_CHANGES` |
      </Accordion>

      <Accordion title="Comments (2)">
        | Action        | What it does                                  | Slug                        |
        | ------------- | --------------------------------------------- | --------------------------- |
        | Get comment   | Get a comment by ID.                          | `GOOGLEDRIVE_GET_COMMENT`   |
        | List comments | List all comments for a file in Google Drive. | `GOOGLEDRIVE_LIST_COMMENTS` |
      </Accordion>

      <Accordion title="Documents (1)">
        | Action       | What it does | Slug                       |
        | ------------ | ------------ | -------------------------- |
        | Get document |              | `GOOGLEDRIVE_GET_DOCUMENT` |
      </Accordion>

      <Accordion title="Drives (4)">
        | Action             | What it does                                                   | Slug                             |
        | ------------------ | -------------------------------------------------------------- | -------------------------------- |
        | Get drive          | Get a shared drive by ID.                                      | `GOOGLEDRIVE_GET_DRIVE`          |
        | Get team drive     | Get metadata about a Team Drive by ID.                         | `GOOGLEDRIVE_GET_TEAM_DRIVE`     |
        | List shared drives | List the user's shared drives.                                 | `GOOGLEDRIVE_LIST_SHARED_DRIVES` |
        | List team drives   | List Team Drives (deprecated, use List Shared Drives instead). | `GOOGLEDRIVE_LIST_TEAM_DRIVES`   |
      </Accordion>

      <Accordion title="Files (7)">
        | Action                  | What it does                                                                                 | Slug                                  |
        | ----------------------- | -------------------------------------------------------------------------------------------- | ------------------------------------- |
        | Download file           | Downloads a file from Google Drive by its ID.                                                | `GOOGLEDRIVE_DOWNLOAD_FILE`           |
        | Download file operation | Download file content using long-running operations.                                         | `GOOGLEDRIVE_DOWNLOAD_FILE_OPERATION` |
        | Download file2          | DEPRECATED: Use GOOGLEDRIVE\_DOWNLOAD\_FILE\_OPERATION instead.                              | `GOOGLEDRIVE_DOWNLOAD_FILE2`          |
        | Find file               | The comprehensive Google Drive search tool that handles all file and folder discovery needs. | `GOOGLEDRIVE_FIND_FILE`               |
        | Get file metadata       | Get a file's metadata by ID.                                                                 | `GOOGLEDRIVE_GET_FILE_METADATA`       |
        | Get file v2             | DEPRECATED: Use GetFileMetadata instead.                                                     | `GOOGLEDRIVE_GET_FILE_V2`             |
        | List files              | DEPRECATED: Use GOOGLEDRIVE\_FIND\_FILE instead.                                             | `GOOGLEDRIVE_LIST_FILES`              |
      </Accordion>

      <Accordion title="Folders (1)">
        | Action      | What it does                                                              | Slug                      |
        | ----------- | ------------------------------------------------------------------------- | ------------------------- |
        | Find folder | Find a folder in Google Drive by its name and optionally a parent folder. | `GOOGLEDRIVE_FIND_FOLDER` |
      </Accordion>

      <Accordion title="Forms (1)">
        | Action   | What it does | Slug                   |
        | -------- | ------------ | ---------------------- |
        | Get form |              | `GOOGLEDRIVE_GET_FORM` |
      </Accordion>

      <Accordion title="Labels (1)">
        | Action           | What it does                                               | Slug                           |
        | ---------------- | ---------------------------------------------------------- | ------------------------------ |
        | List file labels | List the labels already applied to a file in Google Drive. | `GOOGLEDRIVE_LIST_FILE_LABELS` |
      </Accordion>

      <Accordion title="Properties (2)">
        | Action               | What it does                                         | Slug                               |
        | -------------------- | ---------------------------------------------------- | ---------------------------------- |
        | Get file property    | Get a property by its key using Google Drive API v2. | `GOOGLEDRIVE_GET_FILE_PROPERTY`    |
        | List file properties | List a file's properties in Google Drive API v2.     | `GOOGLEDRIVE_LIST_FILE_PROPERTIES` |
      </Accordion>

      <Accordion title="Replies (2)">
        | Action       | What it does                                 | Slug                       |
        | ------------ | -------------------------------------------- | -------------------------- |
        | Get reply    | Get a specific reply to a comment on a file. | `GOOGLEDRIVE_GET_REPLY`    |
        | List replies | List replies to a comment in Google Drive.   | `GOOGLEDRIVE_LIST_REPLIES` |
      </Accordion>

      <Accordion title="Responses (1)">
        | Action              | What it does | Slug                              |
        | ------------------- | ------------ | --------------------------------- |
        | List form responses |              | `GOOGLEDRIVE_LIST_FORM_RESPONSES` |
      </Accordion>

      <Accordion title="Roles and permissions (3)">
        | Action                      | What it does                                                       | Slug                                      |
        | --------------------------- | ------------------------------------------------------------------ | ----------------------------------------- |
        | Get permission              | Gets a permission by ID.                                           | `GOOGLEDRIVE_GET_PERMISSION`              |
        | Get permission ID for email | Get the permission ID for an email address using the Drive API v2. | `GOOGLEDRIVE_GET_PERMISSION_ID_FOR_EMAIL` |
        | List permissions            | List a file's permissions.                                         | `GOOGLEDRIVE_LIST_PERMISSIONS`            |
      </Accordion>

      <Accordion title="Spreadsheets (4)">
        | Action                       | What it does | Slug                                       |
        | ---------------------------- | ------------ | ------------------------------------------ |
        | Batch get spreadsheet values |              | `GOOGLEDRIVE_BATCH_GET_SPREADSHEET_VALUES` |
        | Get spreadsheet              |              | `GOOGLEDRIVE_GET_SPREADSHEET`              |
        | Get spreadsheet values       |              | `GOOGLEDRIVE_GET_SPREADSHEET_VALUES`       |
        | Read spreadsheet values      |              | `GOOGLEDRIVE_READ_SPREADSHEET_VALUES`      |
      </Accordion>

      <Accordion title="Thumbnails (1)">
        | Action                          | What it does | Slug                                          |
        | ------------------------------- | ------------ | --------------------------------------------- |
        | Get presentation page thumbnail |              | `GOOGLEDRIVE_GET_PRESENTATION_PAGE_THUMBNAIL` |
      </Accordion>

      <Accordion title="Tokens (1)">
        | Action                       | What it does                                                           | Slug                                       |
        | ---------------------------- | ---------------------------------------------------------------------- | ------------------------------------------ |
        | Get changes start page token | Get the starting pageToken for listing future changes in Google Drive. | `GOOGLEDRIVE_GET_CHANGES_START_PAGE_TOKEN` |
      </Accordion>

      <Accordion title="Versions (3)">
        | Action                 | What it does                                                                               | Slug                                 |
        | ---------------------- | ------------------------------------------------------------------------------------------ | ------------------------------------ |
        | Download file revision |                                                                                            | `GOOGLEDRIVE_DOWNLOAD_FILE_REVISION` |
        | Get revision           | Get a specific revision's metadata (name, modifiedTime, keepForever, etc.) by revision ID. | `GOOGLEDRIVE_GET_REVISION`           |
        | List revisions         | List a file's revision metadata (not content) in Google Drive.                             | `GOOGLEDRIVE_LIST_REVISIONS`         |
      </Accordion>

      <Accordion title="Other actions (7)">
        | Action                | What it does                                                                    | Slug                                |
        | --------------------- | ------------------------------------------------------------------------------- | ----------------------------------- |
        | Get about             | Retrieve information about the user, the user's Drive, and system capabilities. | `GOOGLEDRIVE_GET_ABOUT`             |
        | Get child             | Get a specific child reference for a folder using Drive API v2.                 | `GOOGLEDRIVE_GET_CHILD`             |
        | Get parent            | Get a specific parent reference for a file using Drive API v2.                  | `GOOGLEDRIVE_GET_PARENT`            |
        | Get presentation      |                                                                                 | `GOOGLEDRIVE_GET_PRESENTATION`      |
        | List access proposals | List pending access proposals on a file.                                        | `GOOGLEDRIVE_LIST_ACCESS_PROPOSALS` |
        | List approvals        | List approvals on a file for workflow-based access control.                     | `GOOGLEDRIVE_LIST_APPROVALS`        |
        | List children v2      | List a folder's children using Google Drive API v2.                             | `GOOGLEDRIVE_LIST_CHILDREN_V2`      |
      </Accordion>
    </AccordionGroup>
  </Accordion>

  <Accordion title="Read + write (recommended)">
    Agents can use 91 of the 103 Google Drive actions at this level: everything in **Read-only**, plus:

    * Create, update, delete, and manage files
    * Create and update drives
    * Create and update properties
    * Create and update roles and permissions
    * Create and update comments
    * Update and send replies
    * Update change history
    * Stop channels
    * Create folders
    * Update labels
    * Create settings
    * Update versions

    The 47 actions that this level adds to **Read-only**:

    <AccordionGroup>
      <Accordion title="Change history (1)">
        | Action        | What it does                                                     | Slug                        |
        | ------------- | ---------------------------------------------------------------- | --------------------------- |
        | Watch changes | Subscribe to changes for a user or shared drive in Google Drive. | `GOOGLEDRIVE_WATCH_CHANGES` |
      </Accordion>

      <Accordion title="Channels (1)">
        | Action             | What it does                                         | Slug                             |
        | ------------------ | ---------------------------------------------------- | -------------------------------- |
        | Stop watch channel | Stop watching resources through a specified channel. | `GOOGLEDRIVE_STOP_WATCH_CHANNEL` |
      </Accordion>

      <Accordion title="Comments (2)">
        | Action         | What it does                                       | Slug                         |
        | -------------- | -------------------------------------------------- | ---------------------------- |
        | Create comment | Create a comment on a file in Google Drive.        | `GOOGLEDRIVE_CREATE_COMMENT` |
        | Update comment | Update an existing comment on a Google Drive file. | `GOOGLEDRIVE_UPDATE_COMMENT` |
      </Accordion>

      <Accordion title="Drives (6)">
        | Action            | What it does                               | Slug                            |
        | ----------------- | ------------------------------------------ | ------------------------------- |
        | Create drive      | Create a new shared drive.                 | `GOOGLEDRIVE_CREATE_DRIVE`      |
        | Create team drive | Create a Team Drive.                       | `GOOGLEDRIVE_CREATE_TEAM_DRIVE` |
        | Hide drive        | Hide a shared drive from the default view. | `GOOGLEDRIVE_HIDE_DRIVE`        |
        | Unhide drive      | Unhide a shared drive.                     | `GOOGLEDRIVE_UNHIDE_DRIVE`      |
        | Update drive      | Update the metadata for a shared drive.    | `GOOGLEDRIVE_UPDATE_DRIVE`      |
        | Update team drive | Update a Team Drive's metadata.            | `GOOGLEDRIVE_UPDATE_TEAM_DRIVE` |
      </Accordion>

      <Accordion title="Files (16)">
        | Action                       | What it does                                                                                                                                                     | Slug                                       |
        | ---------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------ |
        | Copy file                    | DEPRECATED: Use GOOGLEDRIVE\_COPY\_FILE\_ADVANCED instead.                                                                                                       | `GOOGLEDRIVE_COPY_FILE`                    |
        | Copy file advanced           | Creates a copy of a file and applies any requested updates with patch semantics.                                                                                 | `GOOGLEDRIVE_COPY_FILE_ADVANCED`           |
        | Create file                  | Creates a new file or folder in Google Drive.                                                                                                                    | `GOOGLEDRIVE_CREATE_FILE`                  |
        | Create file from text        | Creates a new file in Google Drive from provided text content (up to 10MB), supporting various formats including automatic conversion to Google Workspace types. | `GOOGLEDRIVE_CREATE_FILE_FROM_TEXT`        |
        | Create shortcut to file      | Create a shortcut to a file or folder in Google Drive.                                                                                                           | `GOOGLEDRIVE_CREATE_SHORTCUT_TO_FILE`      |
        | Edit file                    | Updates an existing Google Drive file with binary content by overwriting its entire content with new text (max 10MB).                                            | `GOOGLEDRIVE_EDIT_FILE`                    |
        | Export Google workspace file | Exports a Google Workspace document to the requested MIME type and returns exported file content.                                                                | `GOOGLEDRIVE_EXPORT_GOOGLE_WORKSPACE_FILE` |
        | Move file                    | Move a file from one folder to another in Google Drive.                                                                                                          | `GOOGLEDRIVE_MOVE_FILE`                    |
        | Parse file                   | DEPRECATED: Exports Google Workspace files (max 10MB) to a specified format using mime\_type, or downloads other file types.                                     | `GOOGLEDRIVE_PARSE_FILE`                   |
        | Trash file                   | Move a file or folder to trash (soft delete).                                                                                                                    | `GOOGLEDRIVE_TRASH_FILE`                   |
        | Untrash file                 | Restore a file from the trash.                                                                                                                                   | `GOOGLEDRIVE_UNTRASH_FILE`                 |
        | Update file metadata patch   | Update file metadata using the Drive API v2 PATCH method.                                                                                                        | `GOOGLEDRIVE_UPDATE_FILE_METADATA_PATCH`   |
        | Update file put              | Updates file metadata.                                                                                                                                           | `GOOGLEDRIVE_UPDATE_FILE_PUT`              |
        | Upload file                  | Uploads a file (max 5MB) to Google Drive, placing it in the specified folder or root if no valid folder ID is provided.                                          | `GOOGLEDRIVE_UPLOAD_FILE`                  |
        | Upload update file           | Update file content in Google Drive by uploading new binary content.                                                                                             | `GOOGLEDRIVE_UPLOAD_UPDATE_FILE`           |
        | Watch file                   | Subscribe to push notifications for changes to a specific file.                                                                                                  | `GOOGLEDRIVE_WATCH_FILE`                   |
      </Accordion>

      <Accordion title="Folders (1)">
        | Action        | What it does                                                                                                   | Slug                        |
        | ------------- | -------------------------------------------------------------------------------------------------------------- | --------------------------- |
        | Create folder | Creates a new folder in Google Drive, optionally within an EXISTING parent folder specified by its ID or name. | `GOOGLEDRIVE_CREATE_FOLDER` |
      </Accordion>

      <Accordion title="Labels (1)">
        | Action             | What it does                                  | Slug                             |
        | ------------------ | --------------------------------------------- | -------------------------------- |
        | Modify file labels | Modifies the set of labels applied to a file. | `GOOGLEDRIVE_MODIFY_FILE_LABELS` |
      </Accordion>

      <Accordion title="Properties (3)">
        | Action               | What it does                                                          | Slug                               |
        | -------------------- | --------------------------------------------------------------------- | ---------------------------------- |
        | Add property         | Add a property to a file, or update it if it already exists (v2 API). | `GOOGLEDRIVE_ADD_PROPERTY`         |
        | Patch property       | Update a property on a file using PATCH semantics (v2 API).           | `GOOGLEDRIVE_PATCH_PROPERTY`       |
        | Update file property | Update a property on a file using Google Drive API v2.                | `GOOGLEDRIVE_UPDATE_FILE_PROPERTY` |
      </Accordion>

      <Accordion title="Replies (2)">
        | Action       | What it does                                        | Slug                       |
        | ------------ | --------------------------------------------------- | -------------------------- |
        | Create reply | Create a reply to a comment in Google Drive.        | `GOOGLEDRIVE_CREATE_REPLY` |
        | Update reply | Update a reply to a comment on a Google Drive file. | `GOOGLEDRIVE_UPDATE_REPLY` |
      </Accordion>

      <Accordion title="Roles and permissions (3)">
        | Action            | What it does                                    | Slug                            |
        | ----------------- | ----------------------------------------------- | ------------------------------- |
        | Create permission | Create a permission for a file or shared drive. | `GOOGLEDRIVE_CREATE_PERMISSION` |
        | Patch permission  | Update a permission using patch semantics.      | `GOOGLEDRIVE_PATCH_PERMISSION`  |
        | Update permission | Update a permission with patch semantics.       | `GOOGLEDRIVE_UPDATE_PERMISSION` |
      </Accordion>

      <Accordion title="Settings (1)">
        | Action                      | What it does                                             | Slug                                      |
        | --------------------------- | -------------------------------------------------------- | ----------------------------------------- |
        | Add file sharing preference | DEPRECATED: Use GOOGLEDRIVE\_CREATE\_PERMISSION instead. | `GOOGLEDRIVE_ADD_FILE_SHARING_PREFERENCE` |
      </Accordion>

      <Accordion title="Spreadsheets (4)">
        | Action                          | What it does | Slug                                          |
        | ------------------------------- | ------------ | --------------------------------------------- |
        | Batch update spreadsheet values |              | `GOOGLEDRIVE_BATCH_UPDATE_SPREADSHEET_VALUES` |
        | Clear spreadsheet values        |              | `GOOGLEDRIVE_CLEAR_SPREADSHEET_VALUES`        |
        | Update spreadsheet values       |              | `GOOGLEDRIVE_UPDATE_SPREADSHEET_VALUES`       |
        | Write spreadsheet values        |              | `GOOGLEDRIVE_WRITE_SPREADSHEET_VALUES`        |
      </Accordion>

      <Accordion title="Versions (1)">
        | Action                        | What it does                                                                                                                    | Slug                                        |
        | ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------- |
        | Update file revision metadata | Updates ONLY the metadata properties of a specific file revision (keepForever, published, publishAuto, publishedOutsideDomain). | `GOOGLEDRIVE_UPDATE_FILE_REVISION_METADATA` |
      </Accordion>

      <Accordion title="Other actions (5)">
        | Action           | What it does                                                                  | Slug                           |
        | ---------------- | ----------------------------------------------------------------------------- | ------------------------------ |
        | Add parent       | Add a parent folder for a file using Google Drive API v2.                     | `GOOGLEDRIVE_ADD_PARENT`       |
        | Generate IDs     | Generates a set of file IDs which can be provided in create or copy requests. | `GOOGLEDRIVE_GENERATE_IDS`     |
        | Insert child     | Insert a file into a folder using Drive API v2.                               | `GOOGLEDRIVE_INSERT_CHILD`     |
        | Resumable upload | Start and complete a Google Drive resumable upload session.                   | `GOOGLEDRIVE_RESUMABLE_UPLOAD` |
        | Upload from URL  | Fetch a file from a provided URL server-side and upload it into Google Drive. | `GOOGLEDRIVE_UPLOAD_FROM_URL`  |
      </Accordion>
    </AccordionGroup>
  </Accordion>

  <Accordion title="Full access">
    Agents can use 103 of the 103 Google Drive actions at this level: everything in **Read + write**, plus:

    * Delete drives
    * Delete comments
    * Delete folders
    * Delete properties
    * Delete replies
    * Delete roles and permissions
    * Delete versions

    The 12 actions that this level adds to **Read + write**:

    | Works on                  | Action                                    | What it does                                                                                                  | Slug                                                    |
    | ------------------------- | ----------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------- |
    | **Comments**              | Delete comment                            | Permanently deletes a comment thread (and all its replies) from a Google Drive file.                          | `GOOGLEDRIVE_DELETE_COMMENT`                            |
    | **Drives**                | Delete drive                              | Permanently delete a shared drive.                                                                            | `GOOGLEDRIVE_DELETE_DRIVE`                              |
    |                           | Delete team drive                         | Permanently delete a Team Drive.                                                                              | `GOOGLEDRIVE_DELETE_TEAM_DRIVE`                         |
    | **Files**                 | Delete file                               | DEPRECATED: Use GOOGLEDRIVE\_GOOGLE\_DRIVE\_DELETE\_FOLDER\_OR\_FILE\_ACTION instead.                         | `GOOGLEDRIVE_DELETE_FILE`                               |
    | **Folders**               | Google drive delete folder or file action | Delete a file or folder in Google Drive.                                                                      | `GOOGLEDRIVE_GOOGLE_DRIVE_DELETE_FOLDER_OR_FILE_ACTION` |
    | **Properties**            | Delete property                           | Delete a property from a file using Google Drive API v2.                                                      | `GOOGLEDRIVE_DELETE_PROPERTY`                           |
    | **Replies**               | Delete reply                              | Delete a specific reply by reply ID.                                                                          | `GOOGLEDRIVE_DELETE_REPLY`                              |
    | **Roles and permissions** | Delete permission                         | Deletes a permission from a file by permission ID.                                                            | `GOOGLEDRIVE_DELETE_PERMISSION`                         |
    | **Versions**              | Delete revision                           | Permanently delete a file revision.                                                                           | `GOOGLEDRIVE_DELETE_REVISION`                           |
    | **Other actions**         | Delete child                              | Remove a child from a folder using Google Drive API v2.                                                       | `GOOGLEDRIVE_DELETE_CHILD`                              |
    |                           | Delete parent                             | Remove a parent from a file using Google Drive API v2.                                                        | `GOOGLEDRIVE_DELETE_PARENT`                             |
    |                           | Empty trash                               | Permanently and irreversibly delete ALL trashed files in the user's Google Drive or a specified shared drive. | `GOOGLEDRIVE_EMPTY_TRASH`                               |
  </Accordion>
</AccordionGroup>

## Connect Google Drive

Before you start:

* You need a Google Drive account that you can sign in to.
* Your Squad subscription must be active. Squad does not connect apps while the subscription is not active.

<Steps>
  <Step title="Open Integrations">
    Open **Settings** > **Integrations**.
  </Step>

  <Step title="Add an integration">
    On the **Connected apps** tab, click **+ Add integration**.
  </Step>

  <Step title="Find Google Drive">
    Find **Google Drive** in the catalog and click it. You can type the name in **Search the catalog…**.
  </Step>

  <Step title="Choose an access level">
    Under **Default scope**, choose an access level. This level applies to every agent.
  </Step>

  <Step title="Click Connect Google Drive">
    Click **Connect Google Drive**. The Google Drive sign-in page opens in a new tab.
  </Step>

  <Step title="Sign in to Google Drive">
    Sign in to Google Drive and approve the request.
  </Step>
</Steps>

Check that it works: Google Drive shows under **YOUR CONNECTIONS**, with a row for the account and its access level.

## Change the access level

1. Under **YOUR CONNECTIONS**, find the Google Drive account.
2. Open the account menu (⋯) and click **Manage scope**.
3. Under **Default scope**, choose the new level.
4. Click **Save access**.

The change does not need a new sign-in. Agents get the new level from their next call.

## Set access for one agent

Every agent uses the account's level unless you set something else for it. You can narrow one agent to a lower level, or block it.

1. Under **YOUR CONNECTIONS**, open the account menu (⋯) on the Google Drive account.
2. Click **Manage scope**.
3. Under **Per-agent access**, find the agent.
4. Choose the **Default** option to follow the account's level, choose a lower level, or choose **No access**.
5. Click **Save access**.

An agent never gets more than the account's level, even if you choose a higher level for it. Changes apply from the agent's next call. An agent with **No access** does not see the account.

## Use more than one Google Drive account

Click **+ Account** on the Google Drive card to connect another account. Agents use the primary account unless they are asked to use a specific one.

* After you click **+ Account**, follow the connect steps above.
* Each account has its own access level.
* The first account you connect becomes the primary account. It shows **★ PRIMARY**.
* To change the primary account, open the account menu (⋯) and click **Make primary**.
* To tell accounts apart, open the account menu (⋯) and click **Rename**.

## Reconnect or disconnect

Reconnect when the connection has expired, or when you need to change what the account can reach on the Google Drive side:

1. Open the account menu (⋯) and click **Reconnect**.
2. Click **Reauthorize on Google Drive**.
3. Sign in to Google Drive and approve the request.

Reconnect signs in to the same account again. It does not add a second connection.

Open the account menu (⋯) on the Google Drive account and click **Disconnect**. Agents lose access to that account at once.

<Warning>**Disconnect** acts at once, with no confirmation step. If it was the primary account, another connected Google Drive account becomes primary.</Warning>

## Costs

Google Drive actions do not use Squad credits. Connected apps never use credits. For what does use credits, see [What Squad costs](/docs/costs).

## Troubleshooting

An agent reports that an action is not allowed on this account.

* Cause: the action is outside the account's access level, or outside the level you set for that agent.
* Fix: choose a higher level in **Manage scope**, or change the agent's row under **Per-agent access**.

An agent says it has no access to Google Drive, or it does not see the account.

* Cause: the agent is set to **No access** under **Per-agent access**, or the account is not connected.
* Fix: open **Manage scope** and change the agent's row. If the account is missing, connect it again.

Connecting or saving fails with "Your subscription isn't active."

* Cause: your Squad subscription is not active.
* Fix: resubscribe. See [Manage your subscription](/docs/billing).

An agent says the Google Drive connection has expired.

* Cause: the sign-in for that account is no longer valid.
* Fix: use **Reconnect** on the account.

## Common questions

<AccordionGroup>
  <Accordion title="Can I limit what agents can do in Google Drive?">
    Each Google Drive account has an access level: **Read-only**, **Read + write**, and **Full access**. Squad refuses any agent action outside that level. You can also narrow or block single agents under **Per-agent access**.
  </Accordion>

  <Accordion title="Can I connect more than one Google Drive account?">
    Click **+ Account** on the Google Drive card to connect another account. Agents use the primary account unless they are asked to use a specific one.
  </Accordion>

  <Accordion title="How do I disconnect Google Drive?">
    Open the account menu (⋯) on the Google Drive account and click **Disconnect**. Agents lose access to that account at once.
  </Accordion>
</AccordionGroup>

## Related pages

<CardGroup cols={2}>
  <Card title="Connect apps" icon="plug" href="/docs/integrations" />

  <Card title="Add an MCP server or an API key" icon="server" href="/docs/custom-integrations">
    Use this when an action you need is not in this app.
  </Card>
</CardGroup>
