Bulk moving users from one Google Group to other group

701 views
Skip to first unread message

Admin@K-12-School

unread,
Jul 10, 2018, 11:08:09 AM7/10/18
to GAM for G Suite
Is it possible to move all users from one Google Group to another one, without exporting to csv and uploading to new group?

Peter Smulders

unread,
Jul 13, 2018, 2:18:07 PM7/13/18
to GAM for G Suite
This should do the trick:

$ gam print group-members group source...@yourdomain.com fields email | gam csv - gam update group target...@yourdomain.com add member ~email

--peter

Peter Smulders

unread,
Jul 13, 2018, 2:24:50 PM7/13/18
to GAM for G Suite
Even easier:

$ gam update group target...@yourdomain.com sync member group source...@yourdomain.com


There is / was / is again an issue with syncing: because of a bug in the API, syncing members wipes out owners/managers. Ross' GAMADV-X works around that, I believe. Also, you can tweak some things in the operation. Refer to the manual for that: https://github.com/taers232c/GAMADV-X/wiki/Group-Membership

--peter

Ross Scroggs

unread,
Jul 13, 2018, 2:35:39 PM7/13/18
to google-ap...@googlegroups.com
Admin/Peter,

If you're actually trying to move the users to a new group, i.e., delete them from the group they're currently in and add them to the new group, I'd do this:
gam update group target...@yourdomain.com add member group source...@yourdomain.com
gam update group source...@yourdomain.com clear member

I've used add instead of sync in case target.group already has other members.

Ross

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/8a83b653-1f15-472f-8618-fbe2ec086bd6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--

Admin@K-12-School

unread,
Aug 22, 2018, 11:11:34 AM8/22/18
to GAM for G Suite
Thanks, I will test this!
Reply all
Reply to author
Forward
0 new messages