Google G Suite

How to configure Google G Suite Email Integration

Google integration can be used for sending and receiving email, maps integration and more. Before you can use a Google email account for sending email from HelpMaster, you must first configure your Google Cloud Platform (developer admin) and G Suite account settings. There are two methods for granting access via Gmail, a global Service Account for configuring Global Email Accounts in HelpMaster and personal OAuth 2.0 account access to an application. In both cases a Google App Project, Consent Screen, and Client ID / Secret first need to be created along with granting access to the Gmail API.

Google Service Account Settings

Step 1 - Create and configure your Google Service Account

  1. Open the Service accounts page
  2. Click CREATE PROJECT and enter a Project name (HelpMaster), select your Organisation, browse to your parent Location, and click Create
  3. Click + Create service account
  4. Under Service account details, type a Service account name, Service account ID, and Service account description, then click Create service account
  5. Optional: Grant this service account access to the project, select the IAM roles to grant to the service account, then click CREATE AND CONTINUE
  6. Optional: Grant user access to this service account, add the users or groups that are allowed to manage the service account
  7. Click Done to complete the creation of the service account.
  1. Click Service Accounts from the navigation bar again and click on your new service account to Manage details of it
  2. From the Details (default) tab expand the Advanced settings by clicking the down arrow V. At the bottom click the CONFIGURE button
  3. From this OAuth consent screen choose the User Type - Internal followed by CREATE which will take you to the Edit app registration screen
  4. Enter an App name (e.g. HelpMaster Global), select the User support email and click the + ADD DOMAIN button
  5. Optional: Select an App logo and App domain details
  6. Add the Authorised domains that will suffix the email accounts you will be adding to HelpMaster, each domain must be added individually
  7. Add the Developer contact information email address and click the SAVE AND CONTINUE button
  8. On the Scopes page scroll to the bottom and click the SAVE AND CONTINUE button (Scopes don’t apply to Internal apps)
  9. A summary of your new OAuth consent screen will now be presented. Check the details and EDIT if necessary

Step 3 - Create a security Key for your new Google Service Account

  1. Select the Keys tab followed by ADD KEY > Create new key
  2. Select the JSON key type followed by Create
  3. Save the key (JSON file) to a secure location create key

Step 4 - Grant your new Google Service Account permissions to access email

  1. From your G Suite domain’s Admin console, go to Main menu > Security > Access and data control > API Controls
  2. Scroll to the bottom and in the Domain-wide delegation pane, select Manage Domain-Wide Delegation. Click Add new
  3. In the Client ID field, enter the service account’s Client ID. You can find your service account’s Client ID on the Service accounts page by clicking View Client ID. It is a 21 digit number
  4. In the OAuth scopes (comma-delimited) field, enter https://mail.google.com/
  5. Click Authorize gmail authorisation

Step 5 - Add your new Google Service Account details to HelpMaster

  1. Navigate to Administration > System Administration > System Integration
  2. Go to the Google API tab and click the Browse to JSON key file…
  3. Navigate to, and open the JSON key file that was created in step 3 above
  4. Click the Apply button to save the Google service account access details in HelpMaster create key

Once this step has been completed successfully, create or edit a HelpMaster Global email account that uses this Google API connection. See Global Email Accounts

Granting HelpMaster personal Gmail account access

Granting OAuth 2.0 access to the Gmail API does not require the above Google Service Account to be created first, however the same Google Project and Consent Screen / Application may be utilised. If you have already created the Service Account above you may skip steps 1 and 2 below and start at step 3 within the existing Google project you created.

Step 1 - Create a New Project Resource

  1. Navigate to the Google Cloud Platform > Manage Resources > Manage resources screen
  2. Select the + Create Project option, enter a Project name, select a Location, and click the Create button
  3. Select your new project from the pop-up window.
  1. Navigate to the Google Cloud Platform > APIs & Services > OAuth consent screen screen
  2. Select your HelpMaster project created above
  3. Select the OAuth consent screen from the navigation pane. choose the User Type - Internal, followed by clicking the Create button
  4. Enter the consent screen details inc. App information, App domain, and Developer contact information. Click the SAVE AND CONTINUE button
  5. This will take you to the Scopes screen, as scopes do not apply to User Type - Internal, just click the SAVE AND CONTINUE button
  6. A summary of your new OAuth consent screen will now be presented. Check the details and EDIT if necessary

Step 3 - Create an OAuth 2.0 Client ID and Secret

  1. Navigate to the Google Cloud Platform > APIs & Services > Credentials screen
  2. Select your HelpMaster project created in step 1
  3. Click the + CREATE CREDENTIALS button and select the OAuth client ID option
  4. From the Application type field choose Desktop app and enter a descriptive Name e.g. “HelpMaster Gmail”
  5. Click the Create button and leave this screen open for copying to HelpMaster in the next step create client id secret

Step 4 - Add the OAuth 2.0 Client ID and Secret to HelpMaster

  1. Open the HelpMaster Desktop and navigate to Administration > System Administration > System Integration
  2. Go to the Google API tab
  3. Under Personal accounts - OAuth 2.0 Client IDs settings paste both Your Client ID and Your Client Secret into the matching HelpMaster fields
  4. Click the Apply button to save the Google service account access details in HelpMaster
  5. You may also download the JSON file and save it to a secure location hm client id secret

Step 5 - Create your HelpMaster personal email account

  1. From HelpMaster go to the HM menu and select My Preferences, go to the Email tab
  2. Click the Add Email Account button and select the Google (personal account) option. Click Next >
  3. Click the Logon button and sign in with your Gmail account credentials. Click the Allow button. This will return your Gmail account details to HelpMaster
  4. Click the Test Email Account button to test sending email from HelpMaster, click Next >
  5. Give your new account a descriptive friendly name e.g. “Gmail personal”. Click OK to finish gmail authorisation

Removing HelpMaster personal Gmail account access

  1. Browse to your Gmail account from any compatible browser and click on your account avatar (image or initials) and click Manage your Google Account
  2. From the navigation bar click on Security
  3. Scroll down to the Third-party apps with account access pane and click on Manage third-party access
  4. Select the HelpMaster app and click the REMOVE ACCESS button. remove gmail authorisation

See also

Using OAuth 2.0 to Access Google APIs

OAuth API App Verification Procedure