Set Up Google Workspace Service Account Access

JitBackup for Google Workspace uses a Google Cloud service account to access Google Workspace APIs. Before starting the initial configuration wizard, create the service account and download its credential file in JSON format.

You can use the automatic generator or create the service account manually in Google Cloud Console. Use a Google Workspace administrator account so the project remains under your organization's control.

Automatic Service Account Setup

Privacy & Security: The automatic setup runs entirely in your browser, communicating directly with Google's APIs. JitBackup never receives, routes, or stores your setup data and JSON credentials. The credential file is a one-time direct download, so please keep it secure.

  1. Open the JitBackup Google Service Account Generator.
  2. Click Setup Service Account.
  3. Sign in with a Google Workspace administrator account.
  4. Grant all permissions requested by the generator.
  5. Wait for the process to finish. The file jitbackup_service_account_key.json will download automatically. If the browser blocks the automatic download, use the download link displayed by the generator.
  6. Return to the JitBackup for Google Workspace initial configuration wizard and upload the downloaded JSON file during Domain Setup.

If your organization prevents automatic project or service account key creation, use the manual method below.

Manual Service Account Setup

  1. Sign in to the Google Cloud Console with a Google Workspace administrator account.
  2. Create a new project for Grokbackup.
    • Open IAM & Admin > Manage resources, click Create Project, enter JitBackup as the project name, and create the project. Choose Users to Back Up
    • Once the project is created, click Select project in the Notification that appears. Select project
    • You can also select the new project from the project selector at the top of the Google Cloud Console. Make sure it remains the active project during the next steps. Select project
  3. Enable the required Google APIs.
    • Open APIs & services > Library, search for Gmail API, and click the result. Search Gmail API
    • On the Gmail API page, click Enable Enable Gmail API
    • Return to the previous page and repeat the above steps to enable the Google Drive API, Google Calendar API, Google People API, Google Tasks API, and Admin SDK API.
  4. Create a Service account.
    • Open IAM & Admin > Service Accounts, then click Create service account.
    • Enter jitbackup as the service account name and click Create and continue. create service account
    • In the Permissions step, select Basic > Owner as the Role, then click Continue. service account permissions
    • Click Done directly in the Principals with access section to return to the Service accounts page. create service account
    • Click the Email of the service account we just created to open the Service account details page, and select the Keys tab. service account keys tab
    • Click Add key > Create new key, select JSON, and click Create. The credential file will download automatically. create json key
  5. Return to the JitBackup Setup Wizard and upload the downloaded JSON file during Domain Setup.

Important: The JSON file contains a private key. Store it securely, do not email it, and do not commit it to source control. Google only provides the private key when it is created.

Replace the Service Account

Do not delete or disable the current service account until the replacement has been tested successfully.

  1. Create a new service account credential file using either method above.
  2. Replace the credential in the JitBackup console.
  3. Add the new Client ID and the scopes displayed by JitBackup to Domain-Wide Delegation in the Google Workspace Admin Console. More details see: Authorize Domain-Wide Delegation.
  4. Verify that JitBackup can synchronize users and access Workspace data.
  5. Remove the old Client ID from Domain-Wide Delegation, then disable or delete the old service account key in Google Cloud Console.