The SMA is enabled to a Google API when granted access to that API for a given account. Part of the credentialing process requires setting up a Google Cloud Platform project, enabling the desired API from within it, and creating the credentials.
Please use the numbers to follow through the screenshot instructions.
- Sign in to your developer account at Google Cloud Console https://console.cloud.google.com )
- Create a project.
- Click Projects in the left navigation bar.
- Click Create Project to display the New Project dialog.
- Type a project name.
- Use the auto-generated Project ID or type a unique ID of your choice.
- Click Create - The Project Dashboard for the new project appears.
- Enable the Desired Google API.
- Perform the following for Admin SDK API and/or Gmail API
- Click APIs & Services in the left navigation bar to expand the section, and click Enabled APIs &Services.
- Click +Enable APIs and Service.
- Search for the API.
- Read and agree to the terms of service and click Enable.
- Proceed to Create a Service Account or Create an OAuth Client Credential steps depending on the desired authentication type.
Screenshots to follow through
Steps 2

Click To See Full Image.
Steps 3

Click To See Full Image.
Step 3.4 through

Click To See Full Image.

Click To See Full Image.
Create a Service Account
While still being logged into Google Cloud Console using the left navigation bar to create a service account.
- Select IAM & Admin from the left navigation bar
- Click on Service Accounts
- Click "+" Creative Service Account
- Type a Service Account name
- Type an Optional Description
- Click Create and Continue
- Click Done
- Add a Service Account Key
- Click on the newly created Service Account
- Select the Keys tab then click on "ADD KEY"
- Select the JSON radio button and then click Create
- Save the JSON key file which is automatically downloaded to use later
- Make a note of the OAuth 2 Client ID for the Service Account
Screenshots to follow through
Step 3

Click To See Full Image.
Step 3.1 through 3.4

Click To See Full Image.
Step 4.1

Click To See Full Image.
Step 4.2

Click To See Full Image.
Step 4.5

Click To See Full Image.
Create an OAuth Client Credential
This method requires SSL access to the SMA and a public hostname to access the SMA administration console
While logged into the Google Cloud console, go to the APIs & Services section from the left navigation bar.
- Click the OAuth consent screen in the left navigation bar
- Select Internal if the developer account is part of the same Google Workspace domain as the resources being accessed (organization) otherwise, choose External (any test user listed) and then click on Create
- Enter an App Name ( name displayed when granting access in the SMA Administration Console)
- Enter a Support email
- Enter a Developer's contact email
- Click Save and Continue
- On the Scopes page, click Add or Remove Scopes
- Add the following scopes by entering each one manually. Go to add scopes fields and click on Add to Table
- For Device Discovery and Inventory, add the following Scopes
- For Service Desk Queue email, add the following Scope
- Click on Update
- Click Save and Continue
- Click on Credentials in the left navigation bar
- Click on "+ Create Credential"
- Select OAuth client ID
- Choose Web Application on Application type
- Give the client a name
- Under "Authorized redirect URIs", click "+ Add URI"
- Enter https://appliance_hostname/common/authorize.php for appliance_hostname. This is the hostname used to connect to the SMA Administration console
- Click Create
- Copy and Save the Client ID and Client Secret displayed to use later
- Click on OK
Screenshots to follow through OAuth Consent
Step 1.1

Click To See Full Image.
Step 1.2

Click To See Full Image.
Step 1.4

Click To See Full Image.
Step 1.6

Click To See Full Image.
Step 1.9

Click To See Full Image.
Step 2 through 4

Click To See Full Image.
Step 4.1 through 4.5

Click To See Full Image.
Step 4.6

Click To See Full Image.
Delegate Domain Wide authority to a Service Account
This feature only applies when using a Service Account to authenticate to a Google API. It requires super admin access to the Google Workspace Admin console and it is highly recommended to secure credentials.
Warning: when authorizing Gmail to modify the scope to a service account; access is granted to that service account for all inboxes on the domain. Service Account Key credentials should be protected accordingly.
- Sign in to the Google Admin console at https://admin.google.com/
- Go to Security > Access and data control > API Controls in the left navigation bar
- Click Manage Domain Wide Delegation
- Click Add new
- Enter the Client ID of the Service Account created in the Service Account Creation Step
- Add the Desired OAuth Scopes one by one to the OAuth Scopes Field
- For Device Discovery and Inventory, add the following scopes
- https://www.googleapis.com/auth/admin.directory.device.chromeos
- https://www.googleapis.com/auth/admin.directory.device.mobile
- https://www.googleapis.com/auth/admin.directory.user
- For the Service Desk Queue email, add the following scope
- https://www.googleapis.com/auth/gmail.modify
- Click Authorize
Screenshots to follow through
Step 2 through 3

Click To See Full Image.
Step 4 through 5

Click To See Full Image.
Step 6 through 9

Click To See Full Image.
Configuring Credentials in the SMA Administration Console
- On the Discovery Schedule or Service Desk Queue, an Email Settings screen, click the credential dropdown and click Add Credential
- Select the Service Account or OAuth radio depending on the authentication type
- To configure Service Account Credentials
- Enter an Impersonation Account email
- For Device Discovery - The email address of an admin with access to the devices in the Google Admin console.
- For Service Desk Queue - The email address to receive inbound emails from.
- Click Choose File under Service Account Key and browse to the JSON file saved in the Service Account Creation step.
- Enter a note about the credential if desired.
- Click Save
- To configure OAuth Credentials
- Enter the Client ID from the OAuth Client Creation step
- Enter the Client Secret from the OAuth Client Creation step
- Click Generate New Code link
- In the new window, log into the desired Google account
- For Device Discovery - The account of an admin that has access to the devices in the Google Admin console.
- For Service Desk Queue - The email account to receive inbound emails.
- Click Allow on the account access screen.
- The Google Window will close, and the Access Code field of the Add credential page will be filled.
- Click Save.