Generating OAuth 2.0 Credentials

The following procedures outline how to generate the necessary OAuth 2.0 credentials:

Client Credentials

This section describes the procedures for generating the Client ID, Client Secret, and Refresh Token.

Note
When generating the credentials (client and service account), complete the procedures by using a Google Workspace User who has permission to generate refresh tokens and has the required Roles/IAM Roles to manage Google Workspace and CGP data as mentioned in the Prerequisites, Required Roles for Google Workspace and GCP Management section.

Service Account

A Service Account is an account that belongs to the application. Create a service account for the project in the API Console and delegate domain-wide access to the service account. Now add the required scopes in admin console against the service account Client ID.