Configuring the Gmail API
This feature is only available in version 2024.1.1 and later
This documentation is for a third-party resource that may be subject to change without notice.
The official documentation should be referred to in the event the instructions do not match up.
Activate the Gmail API and Create Credentials
Enabling GMAIL APIS
Read the following data for instructions on how to
Create a Project
Enable the Gmail API for the project
https://developers.google.com/identity/protocols/oauth2/web-server#enable-apis
Open the API Library: https://console.cloud.google.com/apis/library
Open the API Library in the Google API Console.
If prompted, select a project or create a new one.
The API Library lists all available APIs, grouped by product family and popularity. If the API you want to enable isn't visible in the list, search it or click View All in the product family it belongs to.
Enable the GMAIL API
Select the API you want to enable, then click the Enable button.
If prompted, enable billing.
If prompted, read and accept the API's Terms of Service
Creating Access Credentials:
After Enabling the API credentials need to be created
There are two options for credentials
https://developers.google.com/workspace/guides/create-credentials
Setting Up OAuth2 Authentication:
This credential type uses and existing account to log in and requires user authentication
Creating a Service Account
This credential type allows impersonating a user within the domain and does not require authentication
Authorized Domains
https://support.google.com/cloud/answer/6158849#authorized-domains&zippy=%2Cauthorized-domains
The authorized domain is the Customer's PCR-360 application URL
Example pcr360.customername.edu
Redirect URL
The redirect URL is the Customer's PCR-360 application URL
Example https://pcr360.customername.edu/core/oauth2/validated
Download the credentials file
Adding OAuth2 credentials to PCR-360
From Admin Menu, selcet Tenant Managment
Open the first Teanat and go to the Emails tab.
Add a new account
Set the Outgoing Server Type to Gmail API
Enter Required Fields
The email address should be valid against the credentials provided by Google.
Save the form
Open the Gmail Configuration tab
You should now be able to upload the credentials
Click the Upload Gmail Credentials button
Upload the credentials file downloaded from Google
Save the form
Click the authenticate button and use the email in the Tenant Emails form to login.
After being redirected back, you should see a success message
Adding Service Account credentials to PCR-360
From Admin Menu, selcet Tenant Managment
Open the first Teanat and go to the Emails tab.
Add a new account.
Set the Outgoing Server Type to Gmail API
Enter Required Fields
The email address should be valid against the credentials provided by Google.
Save the form
Open the Gmail Configuration tab
You should now be able to upload the credentials
Click the Upload Gmail Credentials button
Upload the credentials file downloaded from Google
Save the form
The authenticate button should remain disabled as Service accounts do not require User authentication.
Setup should be completed.