License sync

112 views
Skip to first unread message

M Anon

unread,
Mar 10, 2022, 3:50:36 AM3/10/22
to GAM for Google Workspace
Hello all,

Am I reading this correctly in that I should be able to sync from a CSV?

Executing the command below results in error:

gam redirect stdout "C:\GAM_scripts\TeacherLicenseUpdates.txt" redirect stderr stdout csvkmd "C:\GAM_scripts\teachers.csv" keyfield TEACHER_EMAIL sync license 1010310009

Basically, I want GAM to sync against a CSV of teachers which contain the column TEACHER_EMAIL.

M

Ross Scroggs

unread,
Mar 10, 2022, 8:48:28 AM3/10/22
to google-ap...@googlegroups.com
M,

It would be helpful to see the error.

Here's a more typical approach:

gam redirect stdout "C:\GAM_scripts\TeacherLicenseUpdates.txt" multiprocess redirect stderr stdout csv "C:\GAM_scripts\teachers.csv" gam user "~TEACHER_EMAIL" sync license 1010310009
--
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/0a4d2c3a-6f54-4103-a0c9-520623dd9886n%40googlegroups.com.

Bill Sanders

unread,
Apr 15, 2022, 2:13:06 PM4/15/22
to GAM for Google Workspace
Hi Ross,

is there also a way to sync licenses using a Google group?  I'm currently doing this:

gam all users delete license #########
gam group enterprise_staff add license #########

Is there something like this:

gam group enterprise_staff sync license #########

Thanks, 

Bill

Ross Scroggs

unread,
Apr 15, 2022, 2:35:45 PM4/15/22
to google-ap...@googlegroups.com

Ross Scroggs

unread,
Apr 15, 2022, 3:43:32 PM4/15/22
to google-ap...@googlegroups.com

Keith Larson

unread,
Apr 15, 2022, 3:46:35 PM4/15/22
to google-ap...@googlegroups.com
There is a way to do this automatically with GCDS now.  It was introduced in version 4.7.12.  The really nice thing is that it will automatically remove licenses when you are no longer a member of the group.
You can find how to make it work here:

Keith A. Larson
Schedule a meeting 15 Min or 30 Min

Student Provisioning Services




Bill Sanders

unread,
Apr 15, 2022, 4:11:10 PM4/15/22
to GAM for Google Workspace
Thanks Ross
Reply all
Reply to author
Forward
0 new messages