mirror of
https://github.com/GAM-team/GAM.git
synced 2026-06-28 18:01:36 +00:00
Some checks failed
Build and test GAM / build (false, build, 1, Build Intel Ubuntu Jammy, ubuntu-22.04) (push) Has been cancelled
Build and test GAM / build (false, build, 10, Build x86_64 macOS 15, macos-15-intel) (push) Has been cancelled
Build and test GAM / build (false, build, 11, Build x86_64 macOS 26, macos-26-intel) (push) Has been cancelled
Build and test GAM / build (false, build, 12, Build Arm MacOS 26, macos-26) (push) Has been cancelled
Build and test GAM / build (false, build, 13, Build Intel Windows, windows-2025-vs2026) (push) Has been cancelled
Build and test GAM / build (false, build, 14, Build Arm Windows, windows-11-arm) (push) Has been cancelled
Build and test GAM / build (false, build, 2, Build Intel Ubuntu Noble, ubuntu-24.04) (push) Has been cancelled
Build and test GAM / build (false, build, 3, Build Arm Ubuntu Noble, ubuntu-24.04-arm) (push) Has been cancelled
Build and test GAM / build (false, build, 4, Build Arm Ubuntu Jammy, ubuntu-22.04-arm) (push) Has been cancelled
Build and test GAM / build (false, build, 5, Build Intel StaticX Legacy, ubuntu-22.04, yes) (push) Has been cancelled
Build and test GAM / build (false, build, 6, Build Arm StaticX Legacy, ubuntu-22.04-arm, yes) (push) Has been cancelled
Build and test GAM / build (false, build, 8, Build Arm MacOS 14, macos-14) (push) Has been cancelled
Build and test GAM / build (false, build, 9, Build Arm MacOS 15, macos-15) (push) Has been cancelled
Build and test GAM / build (false, test, 15, Test Python 3.10, ubuntu-24.04, 3.10) (push) Has been cancelled
Build and test GAM / build (false, test, 16, Test Python 3.11, ubuntu-24.04, 3.11) (push) Has been cancelled
Build and test GAM / build (false, test, 17, Test Python 3.12, ubuntu-24.04, 3.12) (push) Has been cancelled
Build and test GAM / build (false, test, 18, Test Python 3.13, ubuntu-24.04, 3.13) (push) Has been cancelled
Build and test GAM / build (false, test, 19, Test Python 3.15-dev, ubuntu-24.04, 3.15-dev) (push) Has been cancelled
Build and test GAM / build (true, test, 20, Test Python 3.14 freethread, ubuntu-24.04, 3.14) (push) Has been cancelled
Build and test GAM / publish (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled
Check for Google Root CA Updates / check-certs (push) Has been cancelled
Daily Dependency Pinning (2-Week Buffer) / pin-deps (push) Has been cancelled
Push wiki / pushwiki (push) Has been cancelled
157 lines
7.2 KiB
Markdown
157 lines
7.2 KiB
Markdown
# Users - Calendars - Access
|
|
- [Notes](#Notes)
|
|
- [API documentation](#api-documentation)
|
|
- [Definitions](#definitions)
|
|
- [Calendar selection](#calendar-selection)
|
|
- [Manage calendar access](#manage-calendar-access)
|
|
- [Display calendar access](#display-calendar-access)
|
|
- [Transfer calendar ownership](#transfer-calendar-ownership)
|
|
|
|
## Notes
|
|
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)
|
|
|
|
Added `writerwithoutprivateaccess` to `<CalendarACLRole>` in 7.44.03; this will become effective 2026-06-29.
|
|
* See: https://developers.google.com/workspace/calendar/release-notes#June_01_2026
|
|
|
|
## API documentation
|
|
* [Calendar API - ACLs](https://developers.google.com/google-apps/calendar/v3/reference/acl)
|
|
|
|
## Definitions
|
|
* [`<UserTypeEntity>`](Collections-of-Users)
|
|
|
|
```
|
|
<DomainName> ::= <String>(.<String>)+
|
|
<EmailAddress> ::= <String>@<DomainName>
|
|
<CalendarItem> ::= <EmailAddress>
|
|
<CalendarList> ::= "<CalendarItem>(,<CalendarItem>)*"
|
|
<CourseAlias> ::= <String>
|
|
<CourseID> ::= <Number>|d:<CourseAlias>
|
|
<CourseIDList> ::= "<CourseID>(,<CourseID>)*"
|
|
<CourseState> ::= active|archived|provisioned|declined
|
|
<CourseStateList> ::= all|"<CourseState>(,<CourseState>)*"
|
|
<ResourceID> ::= <String>
|
|
<ResourceIDList> ::= "<ResourceID>(,<ResourceID>)*"
|
|
<TimeZone> ::= <String>
|
|
See: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
|
|
<UniqueID> ::= id:<String>
|
|
<UserItem> ::= <EmailAddress>|<UniqueID>|<String>
|
|
|
|
<CalendarAttribute> ::=
|
|
(backgroundcolor <ColorValue>)|
|
|
(color <CalendarColorName>)|
|
|
(colorindex|colorid <CalendarColorIndex>)|
|
|
(foregroundcolor <ColorValue>)|
|
|
(hidden <Boolean>)|
|
|
(notification clear|(email <CalendarEmailNotificatonEventTypeList>))|
|
|
(reminder clear|(email|pop <Number>)|(<Number> email|pop))|
|
|
(selected <Boolean>)|
|
|
(summary <String>)
|
|
|
|
<CalendarSettings> ::=
|
|
(description <String>)|
|
|
(location <String>)|
|
|
(summary <String>)|
|
|
(timezone <TimeZone>)
|
|
|
|
<CalendarACLRole> ::=
|
|
editor|freebusy|freebusyreader|owner|reader|writer|writerwithoutprivateaccess|none
|
|
<CalendarACLScope> ::=
|
|
<EmailAddress>|user:<EmailAdress>|group:<EmailAddress>|
|
|
domain:<DomainName>|domain|default
|
|
<CalendarACLScopeList> ::=
|
|
"<CalendarACLScope>(,<CalendarACLScope>)*"
|
|
<CalendarACLScopeEntity>::=
|
|
<CalendarACLScopeList> | <FileSelector> | <CSVkmdSelector> | <CSVDataSelector>
|
|
|
|
<CalendarSelectProperty> ::=
|
|
minaccessrole <CalendarACLRole>|
|
|
showdeleted|
|
|
showhidden
|
|
|
|
<UserCalendarEntity> ::=
|
|
allcalendars|
|
|
primary|
|
|
<EmailAddress>|
|
|
<UniqueUD>|
|
|
(courses <CourseIDList>)|
|
|
((courses_with_teacher <UserItem>)|my_courses_as_teacher
|
|
[coursestates <CourseStateList>])|
|
|
((courses_with_student <UserItem>)|my_courses_as_student
|
|
[coursestates <CourseStateList>])|
|
|
(resource <ResourceID>)|
|
|
(resources <ResourceIDList>)|
|
|
((calendars <CalendarList>) | <FileSelector> | <CSVFileSelector> |
|
|
<CSVkmdSelector> | <CSVDataSelector>)|
|
|
<CalendarSelectProperty>+
|
|
```
|
|
## Calendar selection
|
|
|
|
* `allcalendars` - All calendars in a user's calendar list
|
|
* `primary` - The user's primary calendar
|
|
* `<EmailAddress>` - The address of a calendar in a user's calendar list
|
|
* `<UniqueID>` - The uniqueid of a calendar in a user's calendar list
|
|
* `courses <CourseIDList>`- The calendars associated with a list of courses
|
|
* `courses_with_teacher <UserItem>` - The calendars associated with courses with `<UserItem>` as a teacher
|
|
* `my_courses_as_teacher` - The calendars associated with the User from `<UserTypeEntity>` as a teacher
|
|
* `courses_with_student <UserItem>` - The calendars associated with courses with `<UserItem>` as a student
|
|
* `my_courses_as_student` - The calendars associated with the User from `<UserTypeEntity>` as a student
|
|
* `coursestates <CourseStateList>` - Used with the previous four options to select courses in a particular state; the default is all
|
|
* `resource <ResourceID>` - The calendar associated with a resource ID
|
|
* `resources <ResourceIDList>` - The calendars associated with a list of resource IDs
|
|
* `calendars (<CalendarList> | <FileSelector> | <CSVFileSelector> | <CSVkmdSelector> | <CSVDataSelector>)` - A collection of calendars: [Collections of Items](Collections-of-Items)
|
|
* `<CalendarSelectProperty>+` - The calendars in a user's calendar list with the specified properites
|
|
|
|
## Manage calendar access
|
|
```
|
|
gam <UserTypeEntity> add calendaracls <UserCalendarEntity>
|
|
<CalendarACLRole> <CalendarACLScopeEntity> [sendnotifications <Boolean>]
|
|
gam <UserTypeEntity> update calendaracls <UserCalendarEntity>
|
|
<CalendarACLRole> <CalendarACLScopeEntity> [sendnotifications <Boolean>]
|
|
gam <UserTypeEntity> delete calendaracls <UserCalendarEntity>
|
|
[<CalendarACLRole>] <CalendarACLScopeEntity>
|
|
```
|
|
By default, when you add or update a calendar ACL, notification is sent to the members referenced in the `<CalendarACLScopeEntity>`.
|
|
Use `sendnotifications false` to suppress sending the notification.
|
|
|
|
## Display calendar access
|
|
```
|
|
gam <UserTypeEntity> info calendaracls <UserCalendarEntity>
|
|
<CalendarACLScopeEntity> [formatjson]
|
|
gam <UserTypeEntity> show calendaracls <UserCalendarEntity>
|
|
[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 <UserTypeEntity> print calendaracls <UserCalendarEntity> [todrive <ToDriveAttribute>*]
|
|
[noselfowner] (addcsvdata <FieldName> <String>)*
|
|
[formatjson [quotechar <Character>]]
|
|
```
|
|
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 <FieldName> <String>`
|
|
|
|
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 <Character>` 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.
|
|
|
|
## Transfer calendar ownership
|
|
|
|
You can transfer ownership of calendars from one user to another; only non-primary calendars owned by the source user can be transferred.
|
|
|
|
This capability is no longer available, see: https://developers.google.com/workspace/calendar/release-notes#October_27_2025
|
|
|
|
Data ownership can be transferred in the Google Calendar UI.
|
|
|
|
See: https://workspaceupdates.googleblog.com/2026/03/an-update-on-secondary-calendar-lifecycle-changes-and-a-new-API.html
|