Automate to delegate shared mail based on group membership

148 views
Skip to first unread message

Francesco Brocani

unread,
Apr 28, 2022, 10:26:11 AM4/28/22
to GAM for Google Workspace
Hi everyone,

I am looking a GAM command to automate the access to a shared mailbox for all members of a user group.

Is it possible? Could it work also if I would like to give access to a shared mailbox to all members of a OU?

Thanks,
Francesco

Ross Scroggs

unread,
Apr 28, 2022, 12:33:16 PM4/28/22
to google-ap...@googlegroups.com
Francesco,

gam print group-members group gr...@domain.com | gam csv - gam user sha...@domain.com add delegate "~email"
gam print users query "orgUnitPath='/Test'" | gam  csv - gam user sha...@domain.com add delegate "~primaryEmail"


Ross

--
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/f9fb59cb-5be7-40f3-ae69-182e5167da67n%40googlegroups.com.

Francesco Brocani

unread,
Apr 28, 2022, 3:57:56 PM4/28/22
to google-ap...@googlegroups.com

Hi Ross,

 

thank you!

 

Can I automate it? I mean every time that we add a new member to the group or to the OU, is it necessary to retype this GAM command?

 

Thanks,

Francesco

James SEYMOUR

unread,
Apr 28, 2022, 7:35:02 PM4/28/22
to GAM for Google Workspace
Hi Francesco,

GAM cannot automate commands, you'll need to create a scheduled task somewhere to execute your GAM commands.

Cheers

James

Kim Nilsson

unread,
May 2, 2022, 11:47:00 AM5/2/22
to GAM for Google Workspace
You will also want to take care of removal of delegated users.
Reply all
Reply to author
Forward
0 new messages