Prerequisites
In order to connect your Google G Suite to ResourceXpress, the following will be required:
A Google G Suite Account with administrator privileges
Access to the Google Developer Console
Access to the Google Admin Control Panel
G Suite Resources
ResourceXpress will connect with a resource calendar to create bookings, these will need to exist in G Suite.
If you do not already have resource calendars see below for how to create these.
All resources being added to ResourceXpress will require their shared settings to be modified.
To access these settings you will need to access these calendars from an admin account.
Setup Google Developer Console
Open the Google Developer Console https://console.developers.google.com
Create a Project
Login with Google Admin Account, click CREATE PROJECT.
If you do not see this option, select your company name, found on the top-right.
Then click NEW PROJECT.
Enter a Project name, and select the relevant Location.
Click Create.
Enable APIs & Services
You will see a notification indicating the new project has been created.
You will automatically be taken to the projects APIs & Services screen.
Click ENABLE APIS AND SERVICES.
From here find the Google Calendar API.
Click ENABLE.
Once enabled you will be taken to the API overview page.
Select CREATE CREDENTIALS.
Using the wizard select the following options.
Which API are you using?
Google Calendar API
Where will you be calling the API from?
Other UI (e.g. Windows, CLI tool)
What data will you be accessing?
Application data
Click What credentials do I need?
Enter a Service account name.
Take note of the Service account ID. We will need this soon.
Select the Owner role, this is found under Project.
For the Key type choose P12.
Click Continue.
You will now be shown a message confirming the Service account and key has been created.
The P12 key will automatically be downloaded.
We will need this shortly.
Share the Resource Calendar with the Service Account
Now that we have the service account created we will need to allow it access to the resource calendars.
Return to your Google Calendar.
Select the “three-dot menu button found alongside the resource name.
Click Settings and sharing.
Scroll down to find Share with specific people.
Click Add people.
Enter your service account email ID that we created in the previous section.
Under Permissions, choose the option Make changes to events.
Click Send.
You will now see this account listed under Share with specific people.
Repeat this for each resource calendar.
Configuring the ResourceXpress Server
Navigate to your ResourceXpress Admin Dashboard.
Using the top navigation menu, click Administration Settings → System Settings.
Enter the details as below.
If you are using an RX Hybrid licence ensure you select Google under Booking System.
Server Host Name | www.google.com |
Server Port | 80 |
P12 Certificate | Use Choose file and select the download .p12 key file. |
Global Resource Credentials | |
Resource Login User ID | Enter the service name used when creating the service account on Google. This will be the section before the @ in the service account email address. |
Resource Login Password | notasecret This is provided by Google. This is usually set to “notasecret”. |
Resource Login Domain | Enter the domain added to the service user account email. This will be the section after the @ in the service account email address. |
Create & Configure Profile Settings
The next step is to add resources to ResourceXpress.
Please follow our guide on Creating and Editing Resource found here - Create & Edit Resource Profiles.
When configuring the Connection Properties sections you will need the Google email address for the resource.
This can be found Google Admin under the Resources section.
It can also be found under the Integrate calendar section from your Admin calendar.
Navigate to your calendar, select the three-dot menu for the resource.
Click Settings and sharing.
Scroll to or click Integrate calendar.
The calendars email address is found under Calendar ID.