Set up your Google Workspace (formerly G Suite) in a few steps.- Activate Google Calendar APIs
- Create a Service Account
- Create Resources
- Grant Access to Resource Calendars
- Register and Verify Domain
Public DNS
flexEZ receives notifications coming from Google Workspace servers over port HTTP/S.
If you are running on-premise behind firewalls, a public DNS for incoming requests is essential so that Google Workspace API can publish notifications to flexEZ.
Alternatively a tunneling solution may be an appropriate option depending on your company's network policies.
Activate Google Calendar APIs
Create a new project or select an existing one.
Enable API Access
In the API & Services left menu pane, click Library to browse the list of APIs.
In the Google Apps APIs list, click Calendar API, then Enable.
Go back to the APIs Library, and select Admin SDK API, then Enable.
Create a Service Account
in the APIs & Services left menu pane, click Credentials.
Click Create Credentials.
Select Service account from the list.
Name the service account "flexEZ Service" (or any other name you find suitable).
Click Done on the last step (and skip the optional steps).
Click edit button to open the newly created service account.
in the Keys section at the bottom of the screen, click ADD KEY and Create new key.
Make sure the JSON option is selected for key type.
Click Create to create and download the key file. This file will be later uploaded onto flexEZ.
Authorize Domain-wide Delegation
From Service account details page, click Enable G suite Domain-wide Delegation.
Click Save.
After you’ve enabled Domain-wide Delegation, the system will create an OAuth 2.0 Client ID, note down this Client ID for the next step.
Authorize Calendar APIs
Navigate through Security > API Controls (at the bottom of the page).
In the Domain wide delegation, click Manage Domain-Wide Delegation.
Click Add new.
Enter the Client ID from the previous step.
In the OAuth Scopes field, enter both of the following URLs and separate them with a comma:
Create Resources
Click Resource management and add new resources.
For each resource, note down the resource email address as this will be needed for flexEZ configuration.
Grant access to Resource Calendars
Last step of the configuration requires an admin account to share calendar permissions with the service account created previously.
Login as an admin, and go to your calendar
Under Other calendars, click add others calendar, select Browse resources
Add the nedeed resources by checking the box
Under Settings for my calendars, select a resource calendar and click Share with specific people.
Click Add people, and enter the flexEZ Service account email address, with permission Make changes to events, and click Send.
Repeat this operation for all your resource calendar, and you're done!
Register and Verify Domain
To comply with Google policies and abuse-prevention measures, you must register the domain that will be sync with your Google Workplace account.
Verify the domain
In the Domain property type, input the domain you want to register (domain will be provided by your local FlexO representative), and click Continue
In the verify domain ownership via DNS record, select Instruction for: Any DNS provider, and copy the TXT record and provide it to your local flexEZ representative.
Click Verify once your local flexEZ representative confirms that the TXT record has been added to the domain records.
Or click Verify Later to perform this step at a later time.
Register the domain
Click Add domain and enter the domain you want to register, and click Add Domain.
Domain will be added to the list of your verified domain.