Bulk gam command for calendar

274 views
Skip to first unread message

Tyler Paz

unread,
May 15, 2024, 12:42:06 PM5/15/24
to GAM for Google Workspace
Hello im looking to see if there is a bulk gam command out there to add calendar access to user and then show it as well. 


I do know of the command below which is good for one offs but have hundreds of users that need access to specific calendars


gam calendar <Calendar Email Address> add acls writer <User Email Address> sendnotifications false

gam user <User Email Address> add calendar <Calendar Email Address> selected true

Ross Scroggs

unread,
May 15, 2024, 12:48:44 PM5/15/24
to google-ap...@googlegroups.com
Tyler,

Make a CSV file CalendarAccess.csv with two columns: calendar,user

gam csv CalendarAccess.csv gam calendar "~calendar" add acls writer "~user" sendnotifications false
gam csv CalendarAccess.csv gam user "~user" add calendar "~calendar" selected true

Ross

----
Ross Scroggs



--
You received this message because you are subscribed to the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/3a9fc99e-0e1f-4de9-8cbc-6be3ed6df297n%40googlegroups.com.

✉ Kevin Melillo

unread,
May 15, 2024, 1:15:08 PM5/15/24
to google-ap...@googlegroups.com
You can use a CSV file to automate the permissions on a mass level.
If you need to do this for a single calendar, then the CSV file should contain a header (I like to use primaryEmail)

example calendar.csv file:
primaryEmail

gam csv calendar.csv gam calendar <calendarEmail> add acls writer ~primaryEmail sendnotifications false
gam csv calendar.csv gam user ~primaryEmail add calendar <calendarEmail> selected true




--

Tyler Paz

unread,
May 15, 2024, 3:40:58 PM5/15/24
to GAM for Google Workspace
Sounds good i will give this a try
Reply all
Reply to author
Forward
0 new messages