Skip to content

Google Workspace ​

KSS Book reads the Google Workspace room (resource) calendars of your meeting rooms and writes what happens on the door display back to Google Calendar. The steps on this page are for your organization's Google Workspace administrator. A KSS Book administrator makes the KSS Book side of the settings on the Calendar connections page.

How it works ​

  • Each room is matched with a room calendar address, the resource's e-mail address (e.g. c_…@resource.calendar.google.com).
  • Rooms with an online door display sync about every minute, others every 10 minutes (a 10-day window starting yesterday). Sync now updates without waiting.
  • Room resources are not users, so the connection acts on behalf of a Workspace user who has “Make changes to events” on the room calendars and writes straight into the room's calendar:
Action on the displayWhat happens in Google Calendar
Book nowA new event without guests is created in the room calendar; nobody is notified.
ExtendThe end time is moved later for events the room organized.
End meetingThe end time is moved earlier; in someone else's meeting the room declines the remaining part.
No check-in (room released)The invitation is declined on behalf of the room; the organizer is notified. Bookings made on the display are deleted.

INFO

In Google Calendar only the organizer can change a meeting's time. A meeting organized by someone else therefore cannot be extended on the door display; the display says so.

For your IT administrator: choosing a method ​

MethodWhen
Connect with a service accountRecommended. Uses a Google Cloud service account with domain-wide delegation.
Sign in with a Google accountWhen KSS Book's shared Google client is available; an account signs in once.
Your own OAuth clientFor account sign-in when you want the client in your own Google Cloud project.

The first method does not depend on anyone's session. With the other two a Workspace account signs in with Google once and KSS Book stores that session's refresh token, encrypted. Which methods you see depends on your installation.

Connecting with a service account ​

Admin panel → Calendar connections → Add connection → Google Workspace → Connect with a service account. The wizard has four steps: Service account, JSON key, Domain-wide delegation, Test and save.

1. Create a service account in Google Cloud ​

  1. Choose or create a project in the Google Cloud console.
  2. Under APIs & Services → Library, enable Google Calendar API and Admin SDK API.
  3. IAM & Admin → Service Accounts → Create service account. The account needs no role.
  4. On the account's Keys tab choose Add key → Create new key → JSON.

If key creation is blocked by an organization policy, ask your Google Cloud administrator.

2. Upload the JSON key ​

In the wizard's JSON key step, drop the file or choose it. KSS Book shows the service account address and its client ID. The key is stored encrypted and never shown again.

3. Grant domain-wide delegation ​

  1. Sign in to admin.google.com as a super administrator.
  2. Security → Access and data control → API controls → Manage domain-wide delegation.
  3. Add new: paste the client ID from the wizard and these scopes, separated by commas:
ScopeWhy
https://www.googleapis.com/auth/calendar.eventsRead room calendars and write the actions on the display.
https://www.googleapis.com/auth/admin.directory.resource.calendar.readonlyList rooms with “Import room resources”.
  1. Authorize. Delegation can take a few minutes to become active.

4. Test and save ​

  1. Enter a connection name.
  2. Authorized user: the Workspace user the service account acts for. A super administrator, or a user with “Make changes to events” on the room calendars (permissions). Importing rooms requires an administrator.
  3. Room calendar for the test (optional): a resource's e-mail address; the write permission is tested too.
  4. Test the connection, then save it.

To renew the key or change the authorized user, use Change key or user on the card.

Connecting by signing in with a Google account ​

An account that can access the room calendars (preferably a service user created for this) signs in with Google once. Google asks for openid, email, profile, calendar.events and admin.directory.resource.calendar.readonly.

With the shared client: Add connection › Google Workspace › Sign in with a Google account.

With your own OAuth client:

  1. Enable Google Calendar API and Admin SDK API in the Google Cloud console.
  2. APIs & Services → OAuth consent screen: user type Internal.
  3. Credentials → Create credentials → OAuth client ID → Web application.
  4. Authorized redirect URI: https://book.kozteknoloji.com.tr/api/connections/google/callback (with your own KSS Book address).
  5. In the admin panel choose Add connection → Google Workspace → Your own OAuth client, enter the client ID and secret, save and sign in with Google.

Tick the calendar permission on Google's consent screen; without it the connection is not saved. If the session ends, the connection shows Sign-in required; press Sign in again on the card.

Adding rooms ​

  • Use Import room resources on the connection card to choose the Workspace room resources; building, floor and capacity come along. The authorized user must be a Workspace administrator.
  • To add a room by hand, choose the connection as the calendar source on the room's Calendar tab and enter the resource's e-mail address (Admin console → Directory → Buildings and resources → Manage resources).

Room calendar permissions ​

For booking, extending and releasing from the display, the user the connection acts for needs “Make changes to events” on every room calendar. With read access only, syncing works but writes fail; Test reports this. Grant it under the room calendar's Settings and sharing → Share with specific people or groups.

Meetings marked “Free”, cancelled meetings, meetings the room declined, and events such as working location and birthdays do not make the room busy. Details of “Private” meetings are hidden according to Settings → Privacy.

Troubleshooting ​

SymptomLikely cause and fix
Domain-wide delegation not grantedThe client ID is not authorized or scopes are missing. Grant it and wait a few minutes.
Google does not accept the authorized userThe authorized user is not an active Workspace user, or the service account/key was deleted.
Google Calendar API or Admin SDK API not enabledEnable both APIs in the Google Cloud project.
Calendar can be read but not changedThe user has read access only on the room calendar.
Room calendar or event not foundWrong resource e-mail address, or the user has no access.
Rooms cannot be listedThe authorized user is not a Workspace administrator.
Key rejectedThe key was deleted or the service account is disabled. Upload a new JSON key.
Google OAuth client not recognisedWrong client ID or secret of your own client.
Any other errorContact the KSS team with the error text.