Skip to main content
Chat with Biamp tech support
Biamp Cornerstone

Step 2B: Booking System Preparation: Google Workspace

This article will cover the process of preparing Google Workspace for Evoko Home integration and during the process you will configure the following:

  1.  Create a New Project and Enable APIs
    1. Configure Project Authorization
    2. Global Calendar Sharing
  2. Create and Configure Resource Calendar
  3. Grant User APIs

Create a New Project and Enable APIs

  1. The first step in the process is to create a new project for the integration between Evoko Home and Google Workspace.  To do so; navigate to Google Cloud Platform and log in using your Google Domain Admin account.
  2. Navigate to the Create Project button. Screen_Shot_2022-10-18_at_10.50.48_AM.png
  3. Enter a name for your project and press Create. Screen_Shot_2022-10-18_at_10.52.28_AM.png
  4. A notification should appear in the notification area when the project is created. Screen_Shot_2022-10-18_at_10.53.48_AM.png
  5. Click on the notification to reach the API manager or go to Menu Icon -> API & Services -> Enabled API's and Services.  Screen_Shot_2022-10-18_at_10.56.51_AM.png
  6. Click on Enable API's and Services Screen_Shot_2022-10-18_at_10.57.53_AM.png
  7. The API Library will appear, search for "Google Calendar API," Select Google Calendar API Screen_Shot_2022-10-18_at_10.59.52_AM.png
  8. Click Enable Screen_Shot_2022-10-18_at_11.00.40_AM.png
  9. Repeat the previous step adding and enabling "Gmail APIScreen_Shot_2022-10-18_at_11.02.01_AM.pngScreen_Shot_2022-10-18_at_11.02.38_AM.png
  10. Enable the last needed API "Admin SDK API" for the project. Screen_Shot_2022-10-18_at_11.03.43_AM.pngScreen_Shot_2022-10-18_at_11.04.15_AM.png
  11. Now we need to create a service account.  Click on the Menu Icon, select IAM & Admin, then select Service AccountsScreen_Shot_2022-10-18_at_11.09.10_AM.png
  12. Click Create Service Account.  Fill in the Name, ID, and the Description and click Create and Continue Screen_Shot_2022-10-18_at_11.10.46_AM.pngScreen_Shot_2022-10-18_at_11.12.27_AM.png
  13. Assign the service account the Role "Service Account Token Creator" from the drop down menu. Screen_Shot_2022-10-18_at_11.14.35_AM.png
  14. Click on Done. The service account should be ready in the list of service accounts.  Press Manage Details to collect the needed information and to create a P12 key. Screen_Shot_2022-10-18_at_11.16.44_AM.png
  15. Create a P12 key by clicking on keys, then add key and choose P12Screen_Shot_2022-10-18_at_11.18.41_AM.png
  16. Press Create and save this P12 key as it will be needed during the Evoko Home - Google connection later on. Screen_Shot_2022-10-18_at_11.20.41_AM.pngScreen_Shot_2022-10-18_at_11.21.37_AM.png
  17. Navigate to Details and take note of the Client ID and the Service Account Email Address as they will also be needed in later steps with Evoko Home. Screen_Shot_2022-10-18_at_11.23.05_AM.png
  18. Now we need to grant the Service Account API Access Permissions.  To do so, navigate to https://admin.google.com and click on Security, then select Access and Data Control, and then select API Controls. Screen_Shot_2022-10-18_at_11.25.57_AM.png
  19. Select Manage Domain Wide Delegation Screen_Shot_2022-10-18_at_11.26.57_AM.png
  20. Under the API Clients ID, Add a New Client and use your Service Account Client ID from the previous steps.  Then copy and paste the following strings to oAuth Scopes and then press Authorize. 
    https://www.googleapis.com/auth/admin.directory.user.readonly, https://www.googleapis.com/auth/calendar, https://www.googleapis.com/auth/gmail.send
  21. Screen_Shot_2022-10-18_at_11.31.12_AM.png
  22. Under View Details you should see all [3] Scopes Applied. Screen_Shot_2022-10-18_at_11.33.15_AM.png

Create and Configure Resource Calendars

  1. To configure the global resource sharing and create a new resource, navigate to https://admin.google.com.  Select Apps then Google Workspace and then CalendarScreen_Shot_2022-10-18_at_11.40.48_AM.png
  2. Select External Sharing option. Screen_Shot_2022-10-18_at_11.42.55_AM.png
  3. Then set external sharing options for primary calendars to "only free/busy information (hide events details). Screen_Shot_2022-10-18_at_11.44.42_AM.png
  4. Press Save.
  5. The next step is to Create one or more calendar resource.  To do so, navigate to Directory -> Buildings and Resources -> Manage Resources Screen_Shot_2022-10-18_at_11.46.37_AM.png
  6. Click Create a New Resource Screen_Shot_2022-10-18_at_11.48.00_AM.png
  7. Add the details for your resource and then Add Resource. Screen_Shot_2022-10-18_at_11.49.40_AM.png
  8. We should now open a private/incognito window.  We will be logging in to the following link with the email that will be used for the Evoko Home Admin Email.  Go to https://www.google.com/calendar and in the calendar side menu next to Other Calendars Screen_Shot_2022-10-18_at_11.52.41_AM.png
  9. Press the + icon and browse for your newly created Resource. Screen_Shot_2022-10-18_at_11.53.40_AM.png
  10. Then click the check box icon. Screen_Shot_2022-10-18_at_11.54.31_AM.png
  11. Select the newly created resource calendar from My Calendar List and select the menu icon, then Share with Specific People Screen_Shot_2022-10-18_at_11.57.56_AM.png
  12. Now make sure to add the service account which will have the settings of show free/busy Screen_Shot_2022-10-18_at_11.59.33_AM.png
  13. We strongly recommend to create a new user specifically for Evoko Home use.  You can us Evoko Admin name, as Super Admin could cause some issues in later steps.  You will also need to grant this user "make changes to events" or "make changes and manage sharing". In the screenshot below we use "Bob Anderson" as the Evoko Admin user. Screen_Shot_2022-10-18_at_12.02.18_PM.png
  14. Permissions should look like this: Screen_Shot_2022-10-18_at_12.03.24_PM.png
  15. Note: If you require PIN or RFID authentication to book you will need to add the users that can book with the permission: "Make Changes to Events". In this guide we use syed.hasan@smsevoko.com as user that will be using Pin/RFID on the Liso panel.  Screen_Shot_2022-10-18_at_12.05.50_PM.png
  16. Repeat the steps above for all resources and users within the Project.
  17. Note that it can take up to 24 hours to populate all of this information in G Suite.  We recommend waiting at least 24 hours before attempting to configure Evoko Home using these accounts!

 

Create a New Project and Enable APIs

To connect Evoko Home to your Google tenant in our steps further down the road you will need a so called "Admin Email."  This user will be authenticated from Evoko Home during our initial Evoko Home wizard and will act as the Global Admin in the Evoko Home interface.  API permissions are only needed for the user that acts as "Admin Email"

  1.  Go to Directory -> Users and click on the user you want to edit.
  2. Scroll down and press Admin Roles and Privileges Screen_Shot_2022-10-18_at_12.10.43_PM.png
  3. Apply the necessary API permission by selecting any of the default Google Roles: Super Admin, Groups Admin, User Management Admin and Help Desk Admin. If you want the user to be more restricted you are able to create a custom role which we will guide you through in the next step. Screen_Shot_2022-10-18_at_12.12.52_PM.png
  4. Make sure to press save.
  5. Creating a custom admin role is done by going into Account -> Admin Roles Screen_Shot_2022-10-18_at_12.15.32_PM.png
  6. Then press Create New Role Screen_Shot_2022-10-18_at_12.16.09_PM.png
  7. Give the new role a name of your liking and click next.  Selecting privileges is done by scrolling down to Admin API Privileges and select Read which you will find under Users.  That is the only permission needed so go ahead and click continue. Screen_Shot_2022-10-18_at_12.18.34_PM.png
  8. Press Create Role Screen_Shot_2022-10-18_at_12.19.18_PM.png
  9. Apply the newly created admin role to your user that will act as Admin Email in Evoko Home.

Further reading

  • Was this article helpful?