Creating a Google Workspace Service Account

Use the following steps to set up a Google Workspace (formerly GSuite) Service account.

  1. Log on to https://console.cloud.google.com with a Super User account.

  2. You will need a project. If you have not created one, refer to this page for instructions: Create, shut down, and restore projects - API Console Help.

  3. The image below is what you should see. In this example, “DZ Project” is the project (1). If your project is not listed, select it from the list at the top of the screen (2).

     

  4. Open the menu (1), select IAM & Admin (2), and select Service Accounts (3).

     

  5. Click + CREATE SERVICE ACCOUNT at the top of the page.

     

  6. Enter the Service account name (1) and Service account description (2) and then click CREATE AND CONTINUE (3).

     

  7. Do not select a role on the next page; just click CONTINUE.

     

  8. You will now be on the “Grant users access to this service account” step of the process. Click DONE.

     

  9. You will now be on the service account page. Select your service account.

     

  10. Select the KEYS (1) tab. Then, from the ADD KEY menu (2), select Create new key (3).

     

  11. Select JSON (1) and click CREATE(2).

     

  12. The private key will be saved to a JSON file and downloaded to your computer. Click CLOSE to continue.

     

  13. Select the DETAILS tab (1) and make note of the Unique ID (2) for the service account. (The unique ID and Client ID for the service account will be the same.) Be sure to copy this number somewhere as you will need to use it later.

     

  14. Open the menu (1), select APIs & Services (2), and select Library (3).

     

  15. Search for “Google Drive API” (1) and select the corresponding tile in the search results (2).

     

  16. Click ENABLE. You can verify the API was enabled by searching for “Google Drive API” again and verifying you see the “API Enabled” status.

     

  17. Search for “Admin SDK API” (1) and select the corresponding tile in the search results (2).

     

  18. Click ENABLE. You can verify the API was enabled by searching for “Admin SDK API” again and verifying you see the “API Enabled” status.

     

  19. Now go to https://admin.google.com and log in with a Super Admin account.

  20. In the left menu, select Security (1), select Access and data control (2), and select API controls (3).

     

  21. Select MANAGE DOMAIN WIDE DELEGATION.

     

  22. Select Add new.

     

  23. The Unique ID from step 13 is the Client ID. Note that you can also get the client ID from the downloaded JSON Keys file. Copy the ID into the Client ID field.

  24. Paste the string of scopes provided below in the OAuth scopes field.
    https://www.googleapis.com/auth/admin.directory.group,https://www.googleapis.com/auth/admin.directory.user,https://www.googleapis.com/auth/drive

  25. Click AUTHORIZE.

     

  26. If done correctly, it should look like this. (If yours does not look like the example, select the Remove link at the end of the row and try again.)

     

 

 

 

 

 

DryvIQ Platform Version: 5.9.2
Release Date: December 17, 2024