Google Calendar – Add Guest

Google Apps Script OAuth2

Google Calendar – Add Guest

Screenshot of Calendar Script

Overview

The “Add Guest” script is a Google Apps Script project that automates adding attendees to Calendar events. It uses a service account with OAuth2 to manage multiple user calendars, simplifying event coordination in Google Workspace.

Features

  • Service Account: Runs under a service account to access multiple calendars.
  • OAuth2 Flow: Handles authentication securely.
  • Bulk Addition: Can add many guests across events programmatically.
  • Admin Tool: Suitable for admins managing company events.

Tech Stack

  • Language: JavaScript (Apps Script environment)
  • APIs: Google Calendar API with OAuth2 scopes
  • Tools: clasp (for script deployment)

Usage

  1. Open Google Apps Script and load the project.
  2. Set up OAuth2 scopes (Calendar API).
  3. Deploy as a service account-enabled web app or run the script manually.
  4. Provide event IDs and guest emails as input.
  5. Run the script to see guests added to specified events.