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

> ## Agent Instructions
> Prowler product naming: Prowler App is now Prowler Local Server, and Prowler Enterprise is now Prowler Private Cloud. Always use the current names when answering. The full product reference is at /getting-started/products: Open Source projects are Prowler CLI, Prowler Local Server, Prowler Local Dashboard, and Prowler SDK; Prowler Products are Prowler Cloud, Prowler Private Cloud, Prowler Hub, Prowler Lighthouse AI, and Prowler MCP.

# Getting Started With Google Workspace on Prowler

Prowler for Google Workspace audits the organization's Google Workspace environment for security misconfigurations, including super administrator account hygiene, domain settings, and more.

## Prerequisites

Set up authentication for Google Workspace with the [Google Workspace Authentication](https://docs.prowler.com/user-guide/providers/googleworkspace/authentication.md) guide before starting either path:

* **Service Account:** Create a Service Account in a GCP project with Domain-Wide Delegation enabled.
* **OAuth Scopes:** Authorize the required read-only OAuth scopes in the Google Workspace Admin Console.
* **Customer ID:** Identify the Google Workspace Customer ID to use as the provider identifier.
* **Delegated User:** Have the email of a super administrator to use as the delegated user.

> [card] [Prowler Cloud](#prowler-cloud)
>
> Onboard Google Workspace using Prowler Cloud

> [card] [Prowler CLI](#prowler-cli)
>
> Onboard Google Workspace using Prowler CLI

## Prowler Cloud

[Added in: 
5.21.0](https://github.com/prowler-cloud/prowler/releases/tag/5.21.0)

> [!NOTE]
>
> This guide applies to
>
> . See [Prowler product families](https://docs.prowler.com/getting-started/products.md).

### Step 1: Locate the Customer ID

1. Log into the [Google Workspace Admin Console](https://admin.google.com).
2. Navigate to "Account" > "Account Settings".
3. Find the **Customer ID** on the Account Settings page.

   ![Google Workspace Customer ID](https://mintcdn.com/prowler/JS11-QKE8N3jq-1e/images/providers/googleworkspace-customer-id.png?fit=max\&auto=format\&n=JS11-QKE8N3jq-1e\&q=85\&s=acf6906d2027ee8bf22292d144dadf27)

> [!NOTE]
>
> The Customer ID starts with the letter "C" followed by alphanumeric characters (e.g., `C0xxxxxxx`). This value acts as the unique identifier for the Google Workspace account in Prowler Cloud.

### Step 2: Open Prowler Cloud

1. Sign in to [Prowler Cloud](https://cloud.prowler.com/sign-in) or [create an account](https://cloud.prowler.com/sign-up).

2. Navigate to "Configuration" > "Providers".

   ![Providers Page](https://mintcdn.com/prowler/yyJURFHpPIAaK8F3/images/prowler-app/cloud-providers-page.png?fit=max\&auto=format\&n=yyJURFHpPIAaK8F3\&q=85\&s=aa592727864e8328ab2574708df74d34)

3. Click "Add Provider".

   ![Add a Provider](https://mintcdn.com/prowler/yyJURFHpPIAaK8F3/images/prowler-app/add-cloud-provider.png?fit=max\&auto=format\&n=yyJURFHpPIAaK8F3\&q=85\&s=793e5a073e1a037e453df158ad7b854d)

4. Select "Google Workspace".

   ![Select Google Workspace](https://mintcdn.com/prowler/yyJURFHpPIAaK8F3/images/providers/select-googleworkspace-prowler-cloud.png?fit=max\&auto=format\&n=yyJURFHpPIAaK8F3\&q=85\&s=d41aa287f78c6128a601d67d5a40b313)

### Step 3: Provide Credentials

1. Enter the **Customer ID** and an optional alias, then click "Next".

   ![Google Workspace Customer ID Form](https://mintcdn.com/prowler/yyJURFHpPIAaK8F3/images/providers/googleworkspace-customer-id-form.png?fit=max\&auto=format\&n=yyJURFHpPIAaK8F3\&q=85\&s=afc65f02385fd2f1a2d5ee13e6dfd0f2)

2. Paste the **Service Account JSON** credentials content.

3. Enter the "Delegated User Email" (a super administrator in the Google Workspace organization).

   ![Google Workspace Credentials Form](https://mintcdn.com/prowler/yyJURFHpPIAaK8F3/images/providers/googleworkspace-credentials-form.png?fit=max\&auto=format\&n=yyJURFHpPIAaK8F3\&q=85\&s=4a738654333813cc3c65e3c1dfc3e8fd)

> [!NOTE]
>
> The Service Account JSON is the full content of the key file downloaded when creating the Service Account. Paste the entire JSON object, not just the file path. For setup instructions, see the [Authentication guide](https://docs.prowler.com/user-guide/providers/googleworkspace/authentication.md).

### Step 4: Check Connection

1. Click "Check Connection" to verify that the credentials and Domain-Wide Delegation are configured correctly.
2. Prowler will test the Service Account impersonation and Admin SDK access.

   ![Check Connection](https://mintcdn.com/prowler/saTLkZ1BmMa35TKH/images/providers/googleworkspace-check-connection.png?fit=max\&auto=format\&n=saTLkZ1BmMa35TKH\&q=85\&s=8ba4f622bdc0168dbd37d4664d153b98)

> [!NOTE]
>
> If the connection test fails, verify that Domain-Wide Delegation is properly configured and that all required OAuth scopes are authorized. It may take a few minutes for delegation changes to propagate. See the [Troubleshooting](https://docs.prowler.com/user-guide/providers/googleworkspace/authentication.md#troubleshooting) section for common errors.

### Step 5: Launch the Scan

1. Review the summary.
2. Click "Launch Scan" to start auditing Google Workspace.

   ![Launch Scan](https://mintcdn.com/prowler/saTLkZ1BmMa35TKH/images/providers/googleworkspace-launch-scan.png?fit=max\&auto=format\&n=saTLkZ1BmMa35TKH\&q=85\&s=70017f33676ddc86d4a21b78e4edf0f4)

***

## Prowler CLI

[Added in: 
5.19.0](https://github.com/prowler-cloud/prowler/releases/tag/5.19.0)

### Step 1: Set Up Authentication

Set your Service Account credentials and delegated user email following the [Google Workspace Authentication](https://docs.prowler.com/user-guide/providers/googleworkspace/authentication.md) guide:

```console theme={null}
export GOOGLEWORKSPACE_CREDENTIALS_FILE="/path/to/service-account-key.json"
export GOOGLEWORKSPACE_DELEGATED_USER="admin@yourdomain.com"
```

Alternatively, pass the credentials content directly as a JSON string:

```console theme={null}
export GOOGLEWORKSPACE_CREDENTIALS_CONTENT='{"type": "service_account", ...}'
export GOOGLEWORKSPACE_DELEGATED_USER="admin@yourdomain.com"
```

### Step 2: Run the First Scan

Run a baseline scan after credentials are configured:

```console theme={null}
prowler googleworkspace
```

Prowler authenticates as the delegated user and runs all available security checks against the Google Workspace organization.

### Step 3: Use a Custom Configuration (Optional)

Prowler uses a configuration file to customize provider behavior. To use a custom configuration:

```console theme={null}
prowler googleworkspace --config-file /path/to/config.yaml
```

***


## Related topics

- [Getting Started With GCP on Prowler](https://docs.prowler.com/user-guide/providers/gcp/getting-started-gcp.md)
- [Google Workspace Authentication in Prowler](https://docs.prowler.com/user-guide/providers/googleworkspace/authentication.md)
- [Getting Started With Cloudflare on Prowler](https://docs.prowler.com/user-guide/providers/cloudflare/getting-started-cloudflare.md)
- [Getting Started With Linode on Prowler](https://docs.prowler.com/user-guide/providers/linode/getting-started-linode.md)
- [Getting Started With Vercel on Prowler](https://docs.prowler.com/user-guide/providers/vercel/getting-started-vercel.md)


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