free/busy info

150 views
Skip to first unread message

Tom Kalinoski

unread,
Sep 16, 2021, 2:57:46 PM9/16/21
to GAM for Google Workspace
Hi, I'm trying to see which users in our domain has unchecked their default calendar setting, Access permissions for events, make available for InsertDomainName, from free/busy.

After we find out who has modified their setting, we want to update veryones settings to make free/busy info  available to all domain users.  I've tyried following the directions here, http://pomba.net/2021/05/google-workspace-useful-gam-commands-for-calendar-privacy/.

They looked promising, but dont seem to work. When I run it after specifying my domain, i get 


zsh: command not found: findstr
zsh: no such user or named directory: primaryEmail

......................


ERROR: [Errno 32] Broken pipe

Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>

BrokenPipeError: [Errno 32] Broken pipe


Message has been deleted

Ross Scroggs

unread,
Sep 16, 2021, 4:12:45 PM9/16/21
to google-ap...@googlegroups.com
Tom,

Here's a start, it requires Advanced GAM.

gam config csv_output_row_filter "'role:regex:^reader$','scope.type:regex:domain'" auto_batch_min 1 redirect csv ./DomainNotFBR.csv nultiprocess all users print calendaracls primary

gam redirect stdout ./DomainFBRUpdate.txt multiprocess redirect stderr stdout csv DomainNotFBR.csv gam user "~primaryEmail" update calendaracls "~calendarId" freebusyreader "~id" sendnotifications false


Contact me directly before running this so I can verify that I understand exactly what you're after.


Ross


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CONFIDENTIALITY NOTICE:
The contents of this email message and any attachments are intended solely for the addressee(s) and may contain confidential and/or privileged information and may be legally protected from disclosure. If you are not the intended recipient of this message or their agent, or if this message has been addressed to you in error, please immediately alert the sender by reply email and then delete this message and any attachments. If you are not the intended recipient, you are hereby notified that any use, dissemination, copying, or storage of this message or its attachments is strictly prohibited.

--
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/08f29c10-8308-4a69-90d6-db539ef48b8bn%40googlegroups.com.


--

Brian Kim

unread,
Sep 16, 2021, 10:24:00 PM9/16/21
to GAM for Google Workspace
I think part of the problem is that when you do gam print calendaracls it will not list the ACL in the CSV if it does not exist (e.g. if I did not share my calendar with the domain, it will not show up).\

If you want your users to have uniform CalendarACL with your primary domain, checking if the ACL exists isn't really necessary (unless you have a very large number of users and need this to run as quickly as possible).

gam config auto_batch_min 1 all users_ns add calendaracls primary freebusyreader domain:yourdomain.com 
Reply all
Reply to author
Forward
0 new messages