> For the complete documentation index, see [llms.txt](https://cybrhawksoc.gitbook.io/cybrhawk-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cybrhawksoc.gitbook.io/cybrhawk-docs/siem-integrations/software-as-a-service/google-workspace.md).

# Google Workspace

This guide walks you through enabling the **G Suite Alert Center API**, creating a **service account** and **P12 key**, delegating domain-wide access, and preparing the **deliverables** for CybrHawk.

***

## Step 1: Enable API

1. **Enable the G Suite (Admin SDK) API**
   * Open the [Google Cloud Console](https://console.cloud.google.com).
   * If no project exists, create one:
     * Click the **project dropdown** → **New Project**.
   * Select the newly created project and click **Open**.\
     *Tip: wait for the project creation notification to complete before proceeding.*

***

## Step 2: Create a Service Account

1. **Open Service Accounts**
   * Click the top-left **Menu**.
2. **Create the Service Account**
   * Click **Create**.
3. **Assign a Role**
   * Assign **Project Viewer** (or a more restrictive role suitable for your governance).
4. **Generate a P12 Key**
   * **Download** the P12 file when prompted and store it securely.
   * Record the file **path/name** for future reference, then **close**.

***

## Step 3: Add the Service Account to G Suite (Domain-Wide Delegation)

1. **Open Admin Console**
   * Go to your G Suite **Admin console**.
2. **Manage Domain-Wide Delegation**
   * In **Authentication**, click **Add New**.
3. **Authorize the Client**
   * In **OAuth scopes**, add:

     ```
     https://www.googleapis.com/auth/admin.reports.audit.readonly
     ```
   * Click **Authorize**.

***

## Deliverables

Email the following to [**socv2@cybrhawk.com**](mailto:socv2@cybrhawk.com):

1. **P12 Key**
   * The downloaded **.p12** file (stored securely).
2. **Service Account Email Address**
   * Found under **IAM & Admin → Service Accounts** in Google Cloud Console.
3. **Administrator Email Address**
   * The admin email used when configuring domain-wide delegation.
