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

# Google Drive

> Google Drive folder ingestion into Flow knowledge search.

export const flowWebUrl = "https://app.letsflow.ai";

Flow uses this integration to run Google Drive actions from automations with the team connection selected during setup. Admins choose which actions that team can use, and automation runs call only those allowed actions through the connection.

<Tabs>
  <Tab title="Provider OAuth">
    ### Prepare in Google Drive

    Prepare any Google Drive access, credential, app approval, or admin permission required for the actions this team will use.

    ### Connect in Flow

    <Steps>
      <Step title="Find the Google Drive integration">
        1. Open **Integrations**.
        2. Choose **Add connection**.
        3. In **Add connection**, search for **Google Drive**.
        4. Select the **Google Drive** card.

        <a className="flow-app-link" href={flowWebUrl}>
          Open Flow

          <svg aria-hidden="true" viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
            <path d="M7 7h10v10" />

            <path d="M7 17 17 7" />
          </svg>
        </a>
      </Step>

      <Step title="Connect">
        1. Pick the team that will use the connection.
        2. Select the Google Drive actions that team's automations need.
        3. Complete the provider authorization or credential step.
      </Step>
    </Steps>
  </Tab>
</Tabs>

## Permissions and scopes

Flow requests scopes during setup based on the actions allowed on the connection. At runtime, Flow checks action access and granted scopes before calling the provider.

<div className="flow-scope-filter" data-flow-scope-filter>
  <button type="button" className="flow-scope-filter-picker" data-flow-scope-filter-trigger>
    <svg aria-hidden="true" viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
      <path d="M3 6h18" />

      <path d="M7 12h10" />

      <path d="M10 18h4" />
    </svg>

    Filter
  </button>

  <div className="flow-scope-filter-menu" data-flow-scope-filter-menu hidden />

  <span data-flow-scope-filter-chips />

  <button type="button" className="flow-scope-filter-clear" data-flow-scope-filter-clear hidden>Clear</button>
</div>

| Scope | Used by actions |
| - | - |
| `https://www.googleapis.com/auth/drive` | All |
| `https://www.googleapis.com/auth/drive.appdata` | Get file metadata, List files, Update file metadata |
| `https://www.googleapis.com/auth/drive.file` | All |
| `https://www.googleapis.com/auth/drive.meet.readonly` | Get file metadata, List files, List permissions |
| `https://www.googleapis.com/auth/drive.metadata` | Get file metadata, List files, List permissions, Update file metadata |
| `https://www.googleapis.com/auth/drive.metadata.readonly` | Get file metadata, List files, List permissions |
| `https://www.googleapis.com/auth/drive.photos.readonly` | Get file metadata, List files, List permissions |
| `https://www.googleapis.com/auth/drive.readonly` | Get file metadata, List files, List permissions |
| `https://www.googleapis.com/auth/drive.scripts` | Update file metadata |

## Supported actions

| Action | Description | <Tooltip tip="Risk estimates the impact of the action. Low reads provider data, medium changes existing records, and high can grant access, remove data, disable resources, or make broad changes.">Risk</Tooltip> |
| - | - | - |
| Add permission | Adds a Google Drive file permission using automation-provided input. Use it when the automation needs to add this provider record or request. | <Badge color="red" size="sm" shape="pill">high</Badge> |
| Get file metadata | Reads metadata for a Google Drive file. Use it to fetch current provider state without modifying data. | <Badge color="green" size="sm" shape="pill">low</Badge> |
| List files | Reads Google Drive files. Use it to fetch current provider state without modifying data. | <Badge color="green" size="sm" shape="pill">low</Badge> |
| List permissions | Reads permissions for a Google Drive file. Use it to fetch current provider state without modifying data. | <Badge color="green" size="sm" shape="pill">low</Badge> |
| Remove permission | Removes a Google Drive file permission. Use it only after the flow confirms the exact target. | <Badge color="red" size="sm" shape="pill">high</Badge> |
| Update file metadata | Updates or triggers metadata for a Google Drive file using automation-provided input. Use it after the automation has selected the target record or command. | <Badge color="yellow" size="sm" shape="pill">medium</Badge> |


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