GAM command to copy all members from one group to a new one

153 views
Skip to first unread message

Justin York

unread,
May 3, 2024, 11:33:19 AM5/3/24
to GAM for Google Workspace
I need to make a temporary Group for a surprise party, with the exception of the one staff member the party is for. How do I copy all members from the existing group to the new one, minus the one person in question? Thanks.

Ross Scroggs

unread,
May 3, 2024, 11:45:05 AM5/3/24
to google-ap...@googlegroups.com
Create Group
See: https://github.com/taers232c/GAMADV-XTD3/wiki/Groups#manage-groups

gam create group temp...@domain.com copyfrom base...@domain.com

Copy membership

gam update group temp...@domain.com add members group_users base...@domain.com members
gam update group temp...@domain.com add managers group_users base...@domain.com managers
gam update group temp...@domain.com add owners group_users base...@domain.com owners

Delete to be surprised user

Ross
----
Ross Scroggs



On May 3, 2024, at 8:03 AM, Justin York <justi...@rsu34.org> wrote:

I need to make a temporary Group for a surprise party, with the exception of the one staff member the party is for. How do I copy all members from the existing group to the new one, minus the one person in question? Thanks.


--
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/b3f3a6e2-15c4-42d9-8ce1-06396420dd9fn%40googlegroups.com.

Justin York

unread,
May 3, 2024, 11:57:16 AM5/3/24
to GAM for Google Workspace
Thanks! I'm getting the error that 'copyfrom' is not a valid argument for gam create group.

Ross Scroggs

unread,
May 3, 2024, 12:00:41 PM5/3/24
to google-ap...@googlegroups.com
What is: gam version

Ross
----
Ross Scroggs


Justin York

unread,
May 3, 2024, 12:03:42 PM5/3/24
to GAM for Google Workspace
6.58

Ross Scroggs

unread,
May 3, 2024, 12:07:31 PM5/3/24
to google-ap...@googlegroups.com
You're using Standard GAM, it doesm't support the commands I used, Advanced GAM is required.


If you send me a Meet/Zoom invitation, I can walk you through the upgrade.

Ross
----
Ross Scroggs


Justin York

unread,
May 3, 2024, 1:16:03 PM5/3/24
to GAM for Google Workspace
Thanks Ross!

To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages