Configure admin-authorized mailbox access for Google Workspace (via service account)#

Revenue Grid supports admin-authorized access to Gmail mailboxes using a secure, service-based integration with Google Workspace. In this model, an administrator configures access centrally — so individual users don’t need to grant permissions manually or reconnect their mailboxes after password changes.

This approach is ideal for organizations that want to streamline onboarding, maintain centralized control, and ensure uninterrupted data capture across all authorized users.

To enable this model, you’ll configure a Google Workspace service account with the necessary permissions and scopes, then upload its credentials in Revenue Grid. Once configured, the service account can access users’ Gmail, Calendar, Contacts, and Tasks data, as authorized by your domain settings.

Note: All configuration actions are performed in your Google Workspace environment by a super admin. Revenue Grid accesses and processes data in line with our privacy and security policies.

Before you begin#

Make sure the following prerequisites are met:

  • You have a platform admin or profile admin account in Revenue Grid.

  • All required user profiles have been created in Revenue Grid.

  • You have Google Workspace super admin permissions to configure APIs, OAuth clients, and domain‑wide delegation.

For instructions on how to create profiles, see Create and configure user profiles.

Step 1: Create a project#

  1. Open the Google Cloud Console at https://console.developers.google.com/ and sign in with a Google Workspace super admin account.

  2. Click the button Select a project ▾ in the upper-left corner.

    ../../../../_images/g0.png
  3. Click NEW PROJECT.

    ../../../../_images/g1.png
  4. Enter a project name (for example, Gmail Service Account) and click CREATE.

    ../../../../_images/g2.png
  5. After the project is created, make sure it is selected in the console.

Step 3: Create a service account#

  1. In the Google Cloud Console, click the menu icon (1), then go to IAM & Admin (2) > Service Accounts (3).

    ../../../../_images/g6.png
  2. Click + CREATE SERVICE ACCOUNT.

    ../../../../_images/g7.png
  3. Enter a Service account name (such as RG Gmail Service Account) and an optional description, then click CREATE AND CONTINUE.

    ../../../../_images/g8.png
  4. In the Role dropdown, select Project > Owner (this can be restricted later as appropriate), then click CONTINUE.

    ../../../../_images/g9.gif
  5. Click DONE to complete service account creation.

  6. In the Service accounts list, locate the newly created account and click the three-dot icon > Manage keys.

    ../../../../_images/g10.png
  7. Click ADD KEY > Create new key.

    ../../../../_images/g10-1.png
  8. Leave the key format as JSON and click CREATE.

    ../../../../_images/g11.png
  9. A JSON key file will download automatically — store it securely, as it will be used later when configuring Revenue Grid.

    ../../../../_images/g12.png
  10. Open the DETAILS tab.

    ../../../../_images/g14.png
  11. Scroll down, expand Advanced settings, and copy the Client ID value.

    ../../../../_images/g4-2.png

Save the Client ID somewhere secure — you will use it in later steps when configuring Google Workspace access.

Step 5: Enable the service account in Google Workspace#

  1. Open the Google Workspace Admin Console at https://admin.google.com/ and sign in with super admin credentials.

  2. In the navigation panel, go to Security.

  3. Under Access and data control, click API controls.

  4. On the API Controls page, click MANAGE THIRD‑PARTY APP ACCESS.

    ../../../../_images/g21.png
  5. Click Configure new app > OAuth App Name Or Client ID.

    ../../../../_images/g22.png
  6. Paste the Client ID you copied earlier and click SEARCH.

    ../../../../_images/g20.png
  7. Select the Revenue Grid app from the search results and click Select.

    ../../../../_images/g24.png
  8. Select the checkbox next to the Client ID, then click SELECT.

    ../../../../_images/g25.png
  9. Set App access to Trusted: Can access all Google services, and click CONFIGURE.

    ../../../../_images/g26.png

Step 6: Set up domain-wide delegation#

  1. In the Google Workspace Admin Console, open the Security tab and go to Access and data control > API controls.

  2. Under Domain-wide delegation, click MANAGE DOMAIN‑WIDE DELEGATION.

    ../../../../_images/g29.png
  3. Click Add new API client.

    ../../../../_images/g30.png
  4. Enter the Client ID from Step 3.

  5. In the OAuth scopes field, enter the following comma‑separated scopes:

    https://www.googleapis.com/auth/gmail.readonly,  
    https://www.google.com/m8/feeds/,  
    https://www.googleapis.com/auth/calendar,  
    https://www.googleapis.com/auth/drive,  
    https://www.googleapis.com/auth/drive.appdata,  
    https://www.googleapis.com/auth/gmail.labels,  
    https://www.googleapis.com/auth/gmail.modify,  
    https://www.googleapis.com/auth/tasks,  
    https://www.googleapis.com/auth/userinfo.email,  
    https://www.googleapis.com/auth/gmail.compose,  
    https://www.googleapis.com/auth/contacts,  
    https://www.googleapis.com/auth/userinfo.profile
    
  6. Click AUTHORISE.

Wait up to a few minutes for domain‑wide delegation to propagate.

Step 7: Configure mailbox connectivity in Revenue Grid#

  1. Open the Revenue Grid settings.

  2. Under Administration, go to Profiles.

    ../../../../_images/Profiles1.png
  3. Open the profile you want to configure and go to the Connectivity tab.

    ../../../../_images/ConnectTab.png
  4. In the Email configuration section, open the Mailbox access type menu and select Google Service Account.

    ../../../../_images/MailboxAccType.png
  5. Under Upload JSON file, click Choose File, select the .json key file you downloaded in Step 3, then click Upload.

    ../../../../_images/Upload.png
  6. Click Save to apply the changes.

The service account is now configured to manage Gmail access for all assigned users. Users do not need to authorize their own mailboxes individually. Revenue Grid can now access Gmail, Calendar, Contacts, and other supported data types, as permitted by the scopes you configured.