--
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-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@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/26361ba7-8387-4eb5-98ff-6dc5864eb301%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Are they aliases that are missing or the main email address of the user? I don't think it matters either way but if there's a pattern like that it could be helpful for troubleshooting.
On Wed, Nov 1, 2017 at 11:50 AM, Steve Martens <s.ma...@gcaschool.com> wrote:
Hello,I've been using GAM for a few years, but really only scratching the surface in how I use it, so please forgive my ignorance.I'm using the commandgam csv file.csv gam update group ~Group add member ~Emailto add many email addresses to many groups. The process seems to work quite well but over time I'm discovering that some email addresses which are present in the CSV are missing in the groups. I've check the Groups Reports to ensure the users did not remove themselves from the groups, no record of such. It seems that some just didn't get added.How can I verify why some are missing? What could be causing them to not be added?Thanks for your assistance,Steve
--
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-manager+unsub...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
They are not aliases, just the main email. There are roughly 1600 email addresses on the CSV being added to 36 different groups. Just two columns, Group and Email. Seems pretty straightforward, but perhaps some get dropped? There are potentially duplicate emails on the list as well, but I believe the first would be added and the second would fail and the process would continue, correct?
Steve
On Wednesday, November 1, 2017 at 10:09:58 AM UTC-6, Andy Poirier wrote:
Are they aliases that are missing or the main email address of the user? I don't think it matters either way but if there's a pattern like that it could be helpful for troubleshooting.
On Wed, Nov 1, 2017 at 11:50 AM, Steve Martens <s.ma...@gcaschool.com> wrote:
Hello,I've been using GAM for a few years, but really only scratching the surface in how I use it, so please forgive my ignorance.I'm using the commandgam csv file.csv gam update group ~Group add member ~Emailto add many email addresses to many groups. The process seems to work quite well but over time I'm discovering that some email addresses which are present in the CSV are missing in the groups. I've check the Groups Reports to ensure the users did not remove themselves from the groups, no record of such. It seems that some just didn't get added.How can I verify why some are missing? What could be causing them to not be added?Thanks for your assistance,Steve
--
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-manager+unsubscribe...@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/26361ba7-8387-4eb5-98ff-6dc5864eb301%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@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/88d41dae-d168-4f17-95e2-07e2372b1a7c%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@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/26361ba7-8387-4eb5-98ff-6dc5864eb301%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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-manager+unsub...@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/88d41dae-d168-4f17-95e2-07e2372b1a7c%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsubscribe...@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/26361ba7-8387-4eb5-98ff-6dc5864eb301%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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-manager+unsubscribe...@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/88d41dae-d168-4f17-95e2-07e2372b1a7c%40googlegroups.com.
--
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-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@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/cbe7c9e8-125e-4ebb-a833-47e9532b9e12%40googlegroups.com.
To post to this group, send email to google-apps-manager@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/cbe7c9e8-125e-4ebb-a833-47e9532b9e12%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@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/26361ba7-8387-4eb5-98ff-6dc5864eb301%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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-manager+unsub...@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/88d41dae-d168-4f17-95e2-07e2372b1a7c%40googlegroups.com.
--
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-manager+unsub...@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/cbe7c9e8-125e-4ebb-a833-47e9532b9e12%40googlegroups.com.
Peter,
I'll refer to Jay's version of GAM as GAM any my advanced version as GAMADV-X (https://github.com/taers232c/GAMADV-X).
Lets suppose you have a CSV file GroupUsers.csv:
Group,Email
gro...@domain.com,us...@domain.com
gro...@domain.com,us...@domain.com
gro...@domain.com,us...@domain.com
gro...@domain.com,us...@domain.com
gro...@domain.com,us...@domain.com
gro...@domain.com,us...@domain.com
gro...@domain.com,us...@domain.com
...
In both versions you can do the following:
gam csv GroupUsers.csv gam update group ~Group add member ~Email > GroupUsers.log 2>&1
A separate process is used to handle each Group/Email pair.
Both versions will make Google mad if you have duplicates.
In GAM and GAMADV-X, the output from the various processes is intermingled and can be very hard to interpret.
In GAMADV-X you can get clean output:
gam redirect stdout ./GroupUsers.log multiprocess redirect stderr stdout csv GroupUsers.csv gam update group ~Group add member ~Email
"redirect stdout ./GroupUsers.log multiprocess redirect stderr stdout" - tells GAMADV-X to intelligently handle the redirect for multiple processes.
You'll still make Google mad if you have duplicates.
GAMADV-X has a completely different approach that you can use that eliminates the duplicates problem.
gam redirect stdout ./GroupUsers.log redirect stderr stdout update group csvkmd GroupUsers.csv keyfield Group datafield Email add member csvdata Email
"redirect stdout ./GroupUsers.log redirect stderr stdout" - no multiprocess is specified as there are not multiple processes
"csvkmd GroupUsers.csv keyfield Group datafield Email" - at the place where the group name goes, we specify the CSV file, the field that is the key field,
Group in this case, and the the data field associated with the key field, Email in this case. GAMADV-X reads the CSV file, and combines all of the data fields
for each unique key field value; duplicates are stripped out.
"csvdata Email" - at the place where the member address goes, we specify the data field name. For each group, the datafield for that group is selected.
GAMADV-X steps through each group and adds the members; there is no parallelism but GAMADV-X adds the members in batches of 20 so it is quick.
Suppose you only want to update two groups, you can have GAMADV-X select specific rows/groups.
gam redirect stdout ./GroupUsers.log redirect stderr stdout update group csvkmd GroupUsers.csv keyfield Group matchfield Group gro...@domain.com matchfield Group gro...@domain.com datafield Email add member csvdata Email
Suppose you have a CSV file with multiple space separated email addresses per row:
Group,Email
gro...@domain.com,us...@domain.com us...@domain.com us...@domain.com us...@domain.com
gro...@domain.com,us...@domain.com us...@domain.com
gro...@domain.com,us...@domain.com
...
gam redirect stdout ./GroupUsers.log redirect stderr stdout update group csvkmd GroupUsers.csv keyfield Group datafield Email delimiter " " add member csvdata Email
delimiter " " - tells GAMADV-X that there are potentially multiple items in the data field and to split them up.
The examples above all show adding members, which, in some respects, is a special case. The more typical case would be sync members.
Suppose your student information system outputs a file nightly with parent email addresses; there is a group per grade and each student can have up to four parent email addresses.
The CSV file has one row per student per grade with one to four email addresses in separate columns.
If there are twins in a grade, there will be two identical rows.
Group,Email1,Email2,Email3,Email4
gra...@domain.com,pare...@domain.com,pare...@domain.com,pare...@domain.com,pare...@domain.com
gra...@domain.com,pare...@domain.com,pare...@domain.com,pare...@domain.com,pare...@domain.com
gra...@domain.com,pare...@domain.com,pare...@domain.com,,
gra...@domain.com,pare...@domain.com,pare...@domain.com,,
gra...@domain.com,pare...@domain.com,pare...@domain.com,,
gra...@domain.com,pare...@domain.com,,,
gra...@domain.com,pare...@domain.com,pare...@domain.com,,
...
gam redirect stdout ./GroupUsers.log redirect stderr stdout update group csvkmd GroupUsers.csv keyfield Group datafield Email1:Email2:Email3:Email4 add member csvdata Email1:Email2:Email3:Email4
"datafield Email1:Email2:Email3:Email4" - tells GAMADV-X that there are multiple data fields
"csvdata Email1:Email2:Email3:Email4" - the data field name(s)
GAMADV-X strips out the duplicates even if they come from separate rows, so grade6 only gets parent31 and parent32 once.
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-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@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/337c1601-071f-41e1-af54-347e1a1a6b84%40googlegroups.com.
--
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.