Bulk Add users to Group as Members with a CSV/TXT File

5,484 views
Skip to first unread message

Randy Gutwein

unread,
Sep 9, 2018, 7:55:54 AM9/9/18
to GAM for G Suite
Hello,

Is there a way I could add 500 users to a Google Group as a Member with Gam.  I have used the following commands with the corresponding CSV/TXT File in the past for other operations:

Bulk Delete User
FOR /F %A IN (delete.csv) DO gam.exe delete user %A 

Bulk Suspend User
FOR /F %A IN (suspend.txt) DO gam.exe update user %A suspended on

Is there a similar one for adding users to a single Group as a Member (not owner).  I have 500 users, and Google only lets me do 25 at a time.

Thank you

Ross Scroggs

unread,
Sep 9, 2018, 8:49:06 AM9/9/18
to google-ap...@googlegroups.com
Randy,

See: https://github.com/jay0lee/GAM/wiki/GAM3DirectoryCommands#add-members-managers-owners-to-a-group

FOR /F %A IN (addtogroup.csv) DO gam.exe update group gr...@domain.com add member user %A

Substitute your actual group email ddress for gr...@domain.com

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/d92c3034-cf5b-4082-b439-3aa6db23bdca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Randy Gutwein

unread,
Sep 9, 2018, 11:14:57 AM9/9/18
to GAM for G Suite
Thank you so much Ross, worked like a charm, this saved me so much time!!1!

Alexander Ivanov ✔

unread,
Sep 27, 2018, 5:13:36 AM9/27/18
to GAM for G Suite
In my case I need to add more than 30k users. And I think It's not a good deal to run 30k instances of gam.

Did you see BulkOperations?

For me on Linux it's 

$> gam csv Untitled.csv gam update group te...@royal-trust.ru add member ~Email user 

My csv file is


Cheers!
Reply all
Reply to author
Forward
0 new messages