The Service Account Certificate is required to use the Google APIs. You can create the certificate from the Google Admin console and then upload it on the UEM console while configuring the email integration.
- Navigate to https://console.developers.google.com and log in using your super admin credentials. The API Dashboard page is displayed.
- Select the projects list drop-down menu and then select '+' to create a project.
- Enter the Project name and select Create. The project ID is generated.
Note: The project ID cannot be changed once the project is created. In case you wish to change the project ID, select Edit before you create the project.
- Select Enable API .
- Select Library from the API Manager sidebar.
The list of Google APIs is displayed.
- Select Admin SDK available under G Suite APIs and then select ENABLE.
- Select Credentials from the API Manager sidebar.
- On the Credentials page, elect Create credentials and then select Service account key.
- Select New service account from the Service account drop-down menu and provide the Service account name, Service account ID and the Role for the service account email address.
- Select P12 as the Key type.
- Select Create.
The new service account has been created. Save the .p12 certificate with private key to your machine. Please make a note of the generated password for the private key.
- Select Manage service accounts on the credentials page.
- Select the service account you created and then select Edit from the corresponding menu.
- Check Enable G Suite Domain-wide Delegation check box. Click SAVE.
Now, the Client ID is generated and View Client ID appears under Options for your service account in the Service accounts page. Currently, there is no way to delete a Client ID once it has been generated. The only alternative is to delete and re-create the whole project. Select View Client ID to view the generated Client ID and the service account email address.
- Navigate to the Google Admin Console https://admin.google.com and login with your super admin credentials.
- Select .
- Select Manage API client Access hyperlink from the Advanced settings pop-up menu.
- Enter the previously generated Client ID (as mentioned in step 8 of On the Google Developer console section) in the Client Name field.
- Authorize your client ID for the required API scopes. Enter the API scopes listed below that are required by the application in the One or More API Scopes field and then select Authorize.
https://www.googleapis.com/auth/admin.directory.user,https://www.googleapis.com/auth/admin.directory.user.readonly,https://www.googleapis.com/auth/admin.directory.device.mobile.readonly,https://www.googleapis.com/auth/admin.directory.device.mobile.action,https://www.googleapis.com/auth/admin.directory.user.securityNote: The API Scopes must be added as a comma-delimited string containing no spaces.