# Calendars - Access - [Notes](#Notes) - [API documentation](#api-documentation) - [Definitions](#definitions) - [Manage calendar access](#manage-calendar-access) - [Display calendar access](#display-calendar-access) - [Old format commands](#old-format-commands) ## Notes These commands use Client access for all commands except those that reference user's primary calendars where Service Account access is used. When using Client access on user's secondary calendars, some operations are restricted. In general, you should use the following commands to manage user's calendars access. * [Users - Calendars - Access](Users-Calendars-Access) Client access works when accessing Resource calendars. Calendar ACL roles (as seen in Calendar GUI): * `reader` - See all event details * `writer` & `editor` Make changes to events * `owner` - Make changes to events and manage sharing * `freebusy` & `freebusyreader` - See only free/busy (hide details) ## API documentation * https://developers.google.com/calendar/v3/reference/acl ## Definitions ``` ::= ::= "(,)*" ::= | | | See: https://github.com/taers232c/GAMADV-XTD3/wiki/Collections-of-Items ::= editor|freebusy|freebusyreader|owner|reader|writer ::= |user:|group:|domain:|domain|default ::= "(,)*" ::= | | | ``` ## Manage calendar access ``` gam calendars add acls|calendaracls [sendnotifications ] gam calendars update acls|calendaracls [sendnotifications ] gam calendars delete acls|calendaracls [] ``` By default, when you add or update a calendar ACL, notification is sent to the members referenced in the ``. Use `sendnotifications false` to suppress sending the notification. ## Display calendar access ``` gam calendars info acls|calendaracls [formatjson] gam calendars show acls|calendaracls [noselfowner] [formatjson] ``` Option `noselfowner` suppresses the display of ACLs that reference the calendar itself as its owner. By default, Gam displays the information as an indented list of keys and values. * `formatjson` - Display the fields in JSON format. ``` gam calendars print acls|calendaracls [todrive *] [noselfowner] (addcsvdata )* [formatjson [quotechar ]] ``` Option `noselfowner` suppresses the display of ACLs that reference the calendar itself as its owner. Add additional columns of data from the command line to the output * `addcsvdata ` By default, when writing CSV files, Gam uses a quote character of double quote `"`. The quote character is used to enclose columns that contain the quote character itself, the column delimiter (comma by default) and new-line characters. Any quote characters within the column are doubled. When using the `formatjson` option, double quotes are used extensively in the data resulting in hard to read/process output. The `quotechar ` option allows you to choose an alternate quote character, single quote for instance, that makes for readable/processable output. `quotechar` defaults to `gam.cfg/csv_output_quote_char`. When uploading CSV files to Google, double quote `"` should be used. ### Old format commands These commands are backwards compatible with basic GAM. ``` gam calendar add ([user] )|(group )|(domain [])|default [sendnotifications ] gam calendar update ([user] )|(group )|(domain [])|default [sendnotifications ] gam calendar delete [] ([user] )|(group )|(domain [])|default gam calendar showacl [formatjson] gam calendar printacl [todrive *] (addcsvdata )* [formatjson [quotechar ]] ``` By default, when you add or update a calendar ACL, notification is sent to the members referenced in the ``. Use `sendnotifications false` to suppress sending the notification.