Provide a service account with domain-wide delegation


You must set up a domain-wide delegated service account to connect your storage bucket and apply your Backup policies to users or Shared Drives. Providing a domain-wide delegated service account prevents API quota limitations.

1. Enable APIs for the Google Cloud project connected to the service account.

1. In GCP Navigate to the APIs & Services > Credentials screen.

2. In the list of Service accounts, open the service account. Click the copy icon to take a note of the Unique ID. This Client ID will need to be added to Google Workspace later.

3. Navigate to the APIs & Services > Dashboard page.


Enable5. In the ‘Search for APIs & Services’ search box, enter ‘Admin SDK’.

6. Click on Admin SDK API


7. Click ENABLE.

8. The Admin SDK API overview page is now shown. Click ‘APIs & Services’ to navigate back to the main APIs & Services page.

9. Repeat steps 1-8 to enable each of the required APIs:

  • Gmail API
  • Google Drive API
  • Drive Activity API
  • Google Calendar API
  • Google Forms API

2. Set up Google Workspace Domain-Wide Delegation for a service account.

For instructions on how to set up domain-wide delegation for your service account please follow Google's comprehensive guide available here.

When providing scopes for the OAuth Scopes field, all of the scopes below must be included or else the process will fail.,,,,,,,,,,,,,

3. Obtain the Service Account Key File

  1. Go to
  2. To create the Service Account Key File, go to IAM & Admin > Service Accounts from the left menu
  3. Locate the service account to which you have just applied Domain-wide Delegation.

  4. Select the Keys tab.
  5. Select Add Key > Create New Key > JSON

The JSON key will download to your local machine.

4.  Upload the JSON Key to CloudM

  1.  Log in to CloudM.
  2.  Navigate to Settings and then Domain Settings
  3.  Under Domain-wide Delegation Service Account select Choose File
  4.  Select your recently downloaded JSON Key file and select Open
  5. Click Save 

You will now be able to successfully apply Backup policies to users and Shared Drives. 


Was this article helpful?
0 out of 0 found this helpful