You can set up email integration with the OAuth 2.0 protocol with Microsoft 365 or Google. The instructions below can be applied to incoming or outgoing email integration or both.
Setting up outgoing/incoming email integration with the OAuth 2.0 protocol
Follow these steps to set up the email integration:
Step #1: Setting the Protocol in SysAid
In SysAid, go to Settings > Setup > Email Integration List.
Click +New.
Go to the Outgoing Email tab.
From the Protocol drop-down, select OAuth 2.0.
Select Google.
Step #2: Creating a project in Google
Navigate to the Google Cloud Platform Console. If you haven't used this Google Cloud Platform Console yet, agree to their terms and conditions.
Click Select a project.
Click New Project at the very top left of the screen, next to the Google Cloud logo.
Enter a Project name, select an Organization and Location, and click Create.
Step #3: Adding Gmail API and Google Calendar API scopes
From the navigation menu, select APIs & Services > Enabled APIs & Services.
Click the + ENABLE APIS AND SERVICES button at the top of the page.
Search for Gmail API and select it from the search results.
Click Enable.
Go back to the API Library search page.
Search for Google Calendar API and select it from the search results. Make sure you select the standard API published by Google, not enterprise connectors or migration tools.
Click Enable.
Step #4: Creating a service account
In the Google Cloud Platform Console, go to IAM & Admin > Credentials.
Click Create Credentials > Service Account.
Enter any name for your service account.
Click Create.
Step #5: Setting owner access
In the 'Grant This Service Account Access to Project' step, click within the Select a role field.
In the window that appears, select Project > Owner.
Click Continue, then click Done.
You will be prompted to configure the OAuth consent screen. Click on Configure consent screen.
Choose Internal as the User Type and click Create.
On the next screen, fill in the App name, User support email, and Developer contact information fields.
Click Save and Continue.
Make sure to agree to the Google API Services: User Data Policy and click Continue.
Click Create.
Click Create OAuth client.
Set the Application type to Web application.
Enter a name for the application, such as “SysAid Email Integration”, and click Create.
Click Download JSON, then click OK.
Navigate to the Scopes tab.
Click Add or remove scopes. A side drawer will open.
Use the filter table to find the Gmail API, check the box next to
https://mail.google.com/(which grants full read/write/send/delete access), and click Update. Repeat this for the Google Calendar API scopehttps://www.googleapis.com/auth/calendar).Please note:
If the option you are searching for doesn't appear in the drop-down menu, you may need to enable the API on your account: Click the link for the Google API Library, search for Gmail API, and follow the instructions for enabling the API.
Click Save.
From the main navigation menu, select IAM and Admin > Service Accounts.
Once you click on your newly created Service Account from the list, look at the tabs at the top or scroll down to the section explicitly called Domain-wide Delegation.
Click Manage Domain-Wide Delegation, check the box that says Enable Google Workspace Domain-wide Delegation, and save it.
Click on your Service Account, go to the Keys tab at the top, click Add Key > Create new key, select JSON, and download it.
Step #6: Configuring the Google Admin console
Navigate to the Google Admin console.
Go to Security > Access and data control > API controls. Right on that main page, you will see a card overview for Google Services.
Click the text link there that says Manage Google Services. Find Gmail and Calendar in the list, change their Access status to Unrestricted, and save.
On the API Controls page, look for the App access control section and click Manage Third-Party App Access.
Click Add app > OAuth App Name and Client ID, paste your JSON's
client_idSet it to Trusted.
Go back to the main Security > Access and data control > API controls page. Scroll all the way to the bottom. You will see a dedicated section called Domain-wide delegation.
Click Manage Domain Wide Delegation.
Click Add new at the top of the table. Enter your Client ID, and in the OAuth Scopes field, paste:
https://mail.google.com/,https://www.googleapis.com/auth/calendar(separated by a comma).Click Authorize.
Step #7: Entering the generated values in SysAid:
Open the JSON file you generated.
Copy the value of the
client_idparameter and paste it into the Service Account field in SysAid.Copy the value of the
private_keyparameter and paste it into the Private Key field in SysAid.
Follow the instructions in the related content below to fill out the rest of the email form. Be sure that the inbox that you set up for incoming email integration is dedicated specifically for incoming email integration with SysAid and not used for any other purposes.
Email processing behavior
When Google Email Integration with OAuth 2.0 is enabled, SysAid continuously monitors the integrated Gmail mailbox for new incoming emails.
All emails sent to the integrated email address are automatically processed by SysAid and used to create service records. Once an email is successfully processed, it is removed from the Inbox to prevent duplicate service record creation.
In Gmail, emails removed by automated integrations are moved to the Trash folder. This behavior is part of Gmail’s standard design for OAuth 2.0–based access and automated message handling.
Emails in the Trash folder are retained for 30 days, after which they are permanently deleted by Google.
Viewing processed emails
To locate emails that were processed and removed from the Inbox, open the Trash folder in Gmail. All processed emails remain available there until the 30-day retention period expires.
Keeping a copy of incoming emails (optional)
If you want to retain a visible copy of all incoming emails, you can configure SysAid to save copies to a dedicated folder.
To do this, go to Settings > Setup > Email > Incoming Email and fill in the Send a copy of the incoming emails to field (available for Enterprise editions only). When configured, SysAid will store a copy of each incoming email in the selected folder instead of relying on the Trash.
Alternatively, Gmail filters and labels can be used to apply a label to incoming emails before they are processed by SysAid.
To learn more, see Incoming Email Integration Form.
Related content
Email list
Required network access
Email form
Outgoing email
Incoming email
Microsoft 365 Email Integration with OAuth 2.0
Email rules