domainwidedelegation.comStart free

Use cases → Email operations

Set out-of-office replies across the entire organisation

Apply standardised out-of-office responses to all users via delegated access, useful for company shutdowns or emergencies.

Who it is forIT administrators responsible for company-wide communications during holidays or unplanned outages.
APIsGmail API
Typical scopesgmail.settings.basic

The problem

During company holidays or incidents, individual users rarely set their out-of-office, leading to missed communications and confusion for external contacts. Manual reminders are ignored or forgotten, and there’s no native admin control to set this globally.

How it works

  1. Collect the list of active user accounts from the directory.
  2. Impersonate each user via domain-wide delegation.
  3. Use the Gmail API to set the out-of-office response, including dates and custom message.
  4. Optionally, log changes and notify users for transparency.

What changes

All mailboxes reply with a consistent message, reducing uncertainty for both senders and recipients during absences.

The trap in this one. The Gmail API’s settings cache can cause a delay of up to an hour before the new out-of-office message is visible to senders, even after a successful API call. If you test immediately, you may see the old or no message; this delay is undocumented and varies per account. Scheduling or back-to-back updates can result in inconsistent states if not properly spaced.

Questions people ask

Does this overwrite personal out-of-office messages?

Yes, the API call replaces any existing vacation responder. Save previous settings if you intend to restore them later.

Can I set different messages for internal and external senders?

The Gmail API supports separate messages for internal and external senders, but you must specify both explicitly in your payload.

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

Draft replies automatically in a shared inbox

A delegated service account reads an incoming enquiry, drafts a researched reply in the mailbox, and leaves it for a human to approve and send.

Triage and route inbound mail across a domain

Classify every inbound message, label it, and forward the ones that matter to the person who owns them — without touching a single mail rule.

Send mail as a shared alias from automation

Deliver notifications, confirmations and campaign replies from a branded address like support@ or updates@ without a human in the loop.