Skip to main content
googleCalendar.updateAccessRule changes a rule’s role while preserving its scope.

Example

Inputs

Provide ruleId and role. Roles are none, freeBusyReader, reader, writerWithoutPrivateAccess, writer, or owner. calendar defaults to primary, sendNotifications is optional, and second argument { account } selects the Google Account.

Output

Returns the updated { id, role, scope }. The action first reads the existing rule so its principal can’t accidentally change. Create a new rule to change scope.