domainwidedelegation.comStart free

Use casesScheduling

Automatically colour-code calendar events for users

Use a delegated service account to assign event colours based on rules, so users can scan their calendars for key meetings at a glance.

Who it is forIT or operations teams managing shared calendars or standardising event types across users.
APIsCalendar API
Typical scopescalendar

The problem

Visual clutter and inconsistent event colours make it hard to distinguish between meeting types or priorities. Manual colour-coding is unreliable and not scalable across a whole organisation.

How it works

  1. Delegate domain-wide access to the service account for user calendars.
  2. Define rules mapping event metadata (like title, description, or guests) to specific colour IDs.
  3. Poll for new or updated events and apply colour changes via the Calendar API.
  4. Log changes and flag any events that fail to update for review.

What changes

Calendars reflect consistent colour conventions, making it easier to spot key meetings and reduce scheduling mistakes.

The trap in this one. The Calendar API's colour changes may be silently dropped if the event is concurrently edited by the user or another integration, due to ETag mismatch. This means some events revert to their previous colour without error, requiring explicit retry logic with ETag refresh or conflict handling.

Watch it explained

How to import the Calendar events dynamically? Part One | Apps Script 41” — Google Workspace Tutorial on YouTube. Third-party video, included because it covers this ground well. We are not affiliated with the channel.

Questions people ask

Can the automation override colours set by users?

Yes, but if a user manually changes a colour after the automation runs, their choice will persist unless your process re-applies the rule on each poll.

How often should the automation scan for changes?

Polling every few minutes is typical, but be aware of API quota limits and the risk of missing rapid-fire edits between polls.

Want this built?

This is a pattern we run in production. We will set up the delegation and build this on top of it — $500 per hour, most of it working the same day.

Talk to us Or read the setup guide

Related use cases

Build a real picture of team availability

Read calendars across the domain to answer who is free, who is overloaded and where the week actually went.

Turn a finished meeting into follow-up automatically

Detect that a meeting happened, pull the notes, and draft the follow-up before anyone opens their laptop.

Turn a booking into a record everywhere it matters

When a meeting is booked, create the record, the folder and the confirmation in one pass.