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

# Resolving "This app is blocked" for Google Connectors

> Fix the 'This app is blocked' error when connecting Google Drive, Docs, Sheets, Calendar, or Gmail connectors in Replit.

## Overview

If you see the error message **"This app is blocked"** when attempting to connect a Google Workspace service (Drive, Docs, Sheets, Calendar, or Gmail) through [Connectors](/replitai/integrations#connectors), it is typically caused by a misconfiguration of Google's OAuth settings within your organization's Google Workspace.

This guide walks you through resolving the issue so you can connect Google services to your Replit apps.

<Frame>
  <img src="https://mintcdn.com/replit/_L2mS6wbXRQEsnHI/images/replitai/debugging-google-connectors/app-is-blocked.png?fit=max&auto=format&n=_L2mS6wbXRQEsnHI&q=85&s=744741b4cbcbb941b9bc54cc4358a9a3" alt="Google error dialog showing 'This app is blocked' message preventing OAuth access" width="1279" height="502" data-path="images/replitai/debugging-google-connectors/app-is-blocked.png" />
</Frame>

<Warning>
  These steps apply only to **Google Workspace** accounts (organization-managed accounts). If you are using a personal Google account linked to a `@gmail.com` address and the Replit connector is blocked, you cannot change the OAuth policy yourself — contact your Google Workspace admin or use a different account.
</Warning>

## Troubleshooting steps

### Step 1: Try Incognito mode

Browser extensions or cached data can interfere with the OAuth flow. Using Incognito mode bypasses these issues.

<Steps>
  <Step title="Open Incognito">
    Open a new **Incognito** (Chrome) or **Private** (Firefox/Safari) window in your browser.
  </Step>

  <Step title="Sign in to Replit">
    Log in to your Replit account at [replit.com](https://replit.com).
  </Step>

  <Step title="Retry the connection">
    Open your app in the Project Editor, navigate to **Connectors** in the sidebar, and try connecting the Google service again.
  </Step>
</Steps>

If the error persists, continue to Step 2.

### Step 2: Verify OAuth settings in Google Workspace

<Note>
  You need access to your organization's **Google Admin console** for this step. Contact your IT team if you do not have admin access.
</Note>

<Steps>
  <Step title="Open the Google Admin console">
    Log in to your organization's [Google Admin console](https://admin.google.com).
  </Step>

  <Step title="Confirm the user exists">
    Navigate to the **Users** section and confirm that the account attempting the Replit connection is listed.

    <Frame>
      <img src="https://mintcdn.com/replit/_L2mS6wbXRQEsnHI/images/replitai/debugging-google-connectors/google-workspace-users.png?fit=max&auto=format&n=_L2mS6wbXRQEsnHI&q=85&s=ca6c61094047718c993038e11c17850c" alt="Google Admin console Users section showing user accounts" width="1104" height="596" data-path="images/replitai/debugging-google-connectors/google-workspace-users.png" />
    </Frame>
  </Step>

  <Step title="Navigate to API Controls">
    Go to **Security > Access and data control > API controls**.

    <Frame>
      <img src="https://mintcdn.com/replit/_L2mS6wbXRQEsnHI/images/replitai/debugging-google-connectors/google-workspace-api-controls.png?fit=max&auto=format&n=_L2mS6wbXRQEsnHI&q=85&s=35edabdb4252908fc88f69b7856b2517" alt="Google Admin console showing Security > API Controls navigation path" data-og-width="1140" width="1140" data-og-height="631" height="631" data-path="images/replitai/debugging-google-connectors/google-workspace-api-controls.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/replit/_L2mS6wbXRQEsnHI/images/replitai/debugging-google-connectors/google-workspace-api-controls.png?w=280&fit=max&auto=format&n=_L2mS6wbXRQEsnHI&q=85&s=4a45a3ece9c19fd6f20b832549160819 280w, https://mintcdn.com/replit/_L2mS6wbXRQEsnHI/images/replitai/debugging-google-connectors/google-workspace-api-controls.png?w=560&fit=max&auto=format&n=_L2mS6wbXRQEsnHI&q=85&s=a79d311465a060bc9eb452583a03d12f 560w, https://mintcdn.com/replit/_L2mS6wbXRQEsnHI/images/replitai/debugging-google-connectors/google-workspace-api-controls.png?w=840&fit=max&auto=format&n=_L2mS6wbXRQEsnHI&q=85&s=2141360a0996f1e752bb16ed41db0416 840w, https://mintcdn.com/replit/_L2mS6wbXRQEsnHI/images/replitai/debugging-google-connectors/google-workspace-api-controls.png?w=1100&fit=max&auto=format&n=_L2mS6wbXRQEsnHI&q=85&s=56468f6d4fdb3bf981e0dbe523eb113e 1100w, https://mintcdn.com/replit/_L2mS6wbXRQEsnHI/images/replitai/debugging-google-connectors/google-workspace-api-controls.png?w=1650&fit=max&auto=format&n=_L2mS6wbXRQEsnHI&q=85&s=4f0bf9ab27d15d91ec6bb6a1b7ccf7a3 1650w, https://mintcdn.com/replit/_L2mS6wbXRQEsnHI/images/replitai/debugging-google-connectors/google-workspace-api-controls.png?w=2500&fit=max&auto=format&n=_L2mS6wbXRQEsnHI&q=85&s=8a777808144a04c71e4c8371f0beda2b 2500w" />
    </Frame>
  </Step>

  <Step title="Open third-party app access">
    Select **Manage third-party app access**.

    <Frame>
      <img src="https://mintcdn.com/replit/_L2mS6wbXRQEsnHI/images/replitai/debugging-google-connectors/third-party-app-access.png?fit=max&auto=format&n=_L2mS6wbXRQEsnHI&q=85&s=d0cf6eb640df4af58304bba7c97f2e45" alt="Google Admin console API controls page with Manage third-party app access button highlighted" width="1686" height="468" data-path="images/replitai/debugging-google-connectors/third-party-app-access.png" />
    </Frame>
  </Step>

  <Step title="Check OAuth access">
    Verify that OAuth access is enabled for users in Google Workspace. If it is restricted, grant the required access so Replit can complete the OAuth flow.
  </Step>
</Steps>

If the connection still fails, continue to Step 3.

### Step 3: Add Replit as a trusted OAuth client

If your organization restricts third-party app access by default, you need to explicitly trust Replit.

<Steps>
  <Step title="Open the Google Admin console">
    Log in to your organization's [Google Admin console](https://admin.google.com).
  </Step>

  <Step title="Navigate to API Controls">
    Go to **Security > Access and data control > API controls**.
  </Step>

  <Step title="Open third-party app access">
    Under **App access control**, select **Manage third-party app access**.
  </Step>

  <Step title="Add a new app">
    Select the **Add app** button, then choose **OAuth App Name or Client ID** from the dropdown.
  </Step>

  <Step title="Search for Replit">
    Enter the Replit Client ID:

    ```
    1012035106355-2dhot2e6o0malvog2ofss7akj2nsp8nq.apps.googleusercontent.com
    ```

    Select **Search**. When the Replit app appears in the results, select it.
  </Step>

  <Step title="Set the access level">
    Set the access level to **Trusted**.
  </Step>

  <Step title="Save">
    Select **Save**.
  </Step>
</Steps>

<Tip>
  Changes to Google Workspace policies can take a few minutes to propagate. Wait 5-10 minutes after saving, then try connecting your Google service in Replit again.
</Tip>

## Still blocked?

If you have completed all three steps and the error persists:

* **Double-check the organizational unit (OU)**: Google Workspace policies can be scoped to specific OUs. Make sure the OAuth and trusted-app settings apply to the OU that contains the user trying to connect.
* **Review Google Workspace alerts**: In the Admin console, check **Reporting > Audit and investigation > OAuth log events** for any denied requests related to Replit.
* **Contact Replit support**: If the issue is not on the Google Workspace side, reach out to [Replit support](https://replit.com/support) for help.

## Related documentation

* [Connectors overview](/replitai/integrations) -- Learn about all integration types, including Google Workspace connectors
* [Managing your connectors](/replitai/managing-connectors) -- Admin setup for Workspace and organization connectors
* [Google Workspace Admin Help: Control third-party app access](https://support.google.com/a/answer/7281227) -- Google's official guide to managing OAuth app access

***

<Note>
  Special thanks to the [Element451](https://element451.com) team for their [original guide on resolving this error](https://help.element451.com/en/articles/9999308-resolving-this-app-is-blocked-error-for-google-drive-connectors), which served as the basis for this article.
</Note>
