Skip to content

Calendars: Google and Teams ​

Portable syncs cabin bookings with Google Calendar and Microsoft Teams (Outlook). The connection is made once per company, then every cabin is bound to its own calendar.

The sync rules and what happens when events are deleted — see Bookings.

Where it is configured ​

Profile → Booking system:

  • calendar tabs — connection forms (the Admin role);
  • the Booking behavior block — the booking policy.

Saved keys are not shown in the interface — the field only marks that it is filled in. To replace a key, paste the new one and save.

Google Calendar ​

Google is connected through a service account — no interactive sign-in: cabins run unattended, and a sign-in that has to be confirmed in a browser does not suit them. A cabin is bound not to a user but to a calendar. This works in Google Workspace and in regular Google accounts alike.

  1. In the Google Cloud Console create a project and enable the Google Calendar API.
  2. Create a service account and download its key in JSON format.
  3. In Portable: Profile → Booking system → Google, paste the contents of the JSON file into Service account key (JSON) and save.
  4. For every cabin create a calendar (or use an existing one) and share it with the service account e-mail with permission to make changes to events.
  5. Copy the Calendar ID from the calendar settings (like …@group.calendar.google.com).
  6. On the cabin page: Bookings → Calendar bindings → Google, paste the Calendar ID.

A shared calendar

A calendar can be shared with several people. The server tells apart events people created in this calendar and events Portable created itself (bookings from the interface, walk-ins and bookings from other calendars). Deleting the former cancels the booking; deleting the latter restores the event.

Microsoft Teams (Outlook) ​

Teams is connected through a Microsoft Entra ID (Azure AD) application with application permissions. A cabin is bound to a Microsoft 365 user — that user's calendar is the cabin's schedule.

  1. Register an application in the Microsoft Entra admin center.
  2. Grant it Microsoft Graph application permissions to read users and write calendars (for example User.Read.All and Calendars.ReadWrite) and give admin consent.
  3. Create a client secret.
  4. In Portable: Profile → Booking system → Microsoft Teams, fill in Client ID, Secret, Tenant and save.
  5. Create a Microsoft 365 user (or a resource mailbox) for every cabin.
  6. On the cabin page: Bookings → Calendar bindings → Microsoft Teams, enter that user's e-mail. The server finds the user id by the e-mail itself.

Cabin bindings ​

The Calendar bindings block below the schedule on the Bookings tab shows what represents the cabin in each connected calendar:

CalendarField
GoogleCalendar ID of the cabin
Microsoft TeamsCabin e-mail — the Microsoft user is found by this address

A cabin without a binding does not take part in sync with that calendar.

Checking ​

  • Create a booking in the interface — the event appears in the calendar within seconds.
  • Create an event in the cabin's calendar — within a minute it appears on the Bookings tab with its source label.
  • If something does not sync — Troubleshooting.

© Modular Acoustic Solutions · WorkBooth