Appendix

The following section guides you through the process of retrieving your G Suite service account’s private key JSON file, creating a service account in the google cloud console and giving the required authorization to your project in google admin.

Creating a Service Account for Gsuite

  1. Go to the Cloud Console page and enter your credentials.

  2. Click IAM & Admin > Manage Resources.

_images/gsuite-manageresources.png

Manage Resources

  1. Click Create Project.

_images/gsuite-createproject.png

Create Project

  1. Enter a project name.

  2. Click Create.

_images/gsuite-newproject.png

New Project

  1. Click Select Project.

  2. Click APIs and services > Library.

_images/gsuite-services.png

APIs and Services

  1. Search for Admin SDK API and Gmail API in the search bar and enable them both.

  2. Click APIs and services > Credentials from the navigation bar.

_images/gsuite-credentials.png

APIs and Services

  1. Click Create Credentials and select Service account.

_images/gsuite-account.png

Service Account

  1. Enter a Service account name and click Create and Continue.

_images/gsuite-accountname.png

Service Account Name

  1. Select a role and click Continue.

  2. Click Done.

  3. Go back to APIs and services > Credentials and select the created Service Account.

_images/gsuite-accountname1.png

Service Account

  1. Click Keys > Add Key > Create new key.

  2. Select JSON as Key type and click Create.

The G Suite service account’s private key JSON file will be automatically downloaded to your computer.

Authorizing Projects

  1. Go to the Google Admin page and enter your credentials.

  2. Click Security > API Controls.

  3. Click Manage Domain Wide Delegation.

_images/gsuite-domain.png

Manage Domain Wide Delegation

  1. Click Add new.

  2. Enter your Client ID from the previously downloaded JSON file.

  3. In the One or More API Scopes field, enter the following scopes:

    https://www.googleapis.com/auth/admin.reports.audit.readonly

    https://www.googleapis.com/auth/admin.reports.usage.readonly

    https://www.googleapis.com/auth/gmail.readonly

  4. Click Authorize.


Helpful?

We are glad this guide helped.


Please don't include any personal information in your comment

Contact Support