googleCalendar.createAccessRule grants a calendar role to a principal or the public.
Example
Inputs
Output
Returns the created{ id, role, scope }. Preserve id for updates or deletion.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Share a Google Calendar with a user, group, domain, or the public.
googleCalendar.createAccessRule grants a calendar role to a principal or the public.
import { automation, onDashboardRun } from "automate.ax"
import { googleCalendar } from "automate.ax/google-calendar"
export default automation("Share a team calendar", () => {
onDashboardRun({ title: "Share a team calendar" })
googleCalendar.createAccessRule({
calendar: "Team Calendar",
scope: { type: "group", value: "launch@example.com" },
role: "writer",
sendNotifications: true,
})
})
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
scope | { type: "user" | "group" | "domain"; value: string } | { type: "default" } | Yes | None | Recipient or public scope. default means public and must not include a value. |
role | "none" | "freeBusyReader" | "reader" | "writerWithoutPrivateAccess" | "writer" | "owner" | Yes | None | Permission to grant. |
calendar | string | No | "primary" | Exact title or ID. |
sendNotifications | boolean | No | Google default | Whether Google emails the recipient. |
Second argument: { account } | Google Account reference | No | Project default | Connected account. |
{ id, role, scope }. Preserve id for updates or deletion.
default scope can make the calendar public. Grant owner only when
transferring owner-level control is intended and supported by Google.