Calendar API offers several concepts that are primarily useful in the context of G Suite domains. Domains often have resources — rooms, projectors, and so forth — that domain users may wish to book for specific events. Furthermore, it’s common to build internal apps that need access to all user calendars in a domain, for example to add corporate events to them.
Domain resources and rooms
You can book resources and rooms by adding them to events as attendees, using their email address. When they receive the invitation, they automatically accept or decline the event based on the availability and access right of the inviting user.
Accessing domain calendars as an app
An app can access domain-owned calendars without requiring
user credentials if it authenticates using a service
account. The service account must
have the necessary access using domain-wide authority
order to impersonate a user account, specify the email address of the user
account with the
setServiceAccountUser method of the