I would like to add some newly created users to multiple groups (up to 5 in some cases) with one command. Anyone have any suggestions? I'm running 3.21 on 10.9.4. I'm OK with doing it one user at a time, but it would be nice to be able to add that one user to multiple groups with one bulk command. Thanks in advance for any help,-Ryan
--
You received this message because you are subscribed to the Google Groups "Google Apps Manager" 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 http://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/86b29265-b15a-4327-bd6f-071b88dfb240%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
gam update group "sms-6thgradestudents" add file 'sms6th.txt'
adding member se**_a*******@sesd.org...Error 403: Insufficient Permission - insufficientPermissions
gam update group $yourgrouphere user $usernamefromcsvrepeat for each group. If you create a csv with the group names and the member names ahead of time you can read them into a command as variables
On Thu, Jul 31, 2014 at 12:40 PM, Ryan Bahten <rba...@delnorte.k12.ca.us> wrote:
I would like to add some newly created users to multiple groups (up to 5 in some cases) with one command. Anyone have any suggestions? I'm running 3.21 on 10.9.4. I'm OK with doing it one user at a time, but it would be nice to be able to add that one user to multiple groups with one bulk command. Thanks in advance for any help,-Ryan
--
You received this message because you are subscribed to the Google Groups "Google Apps Manager" 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 http://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/86b29265-b15a-4327-bd6f-071b88dfb240%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
while IFS=, read username; do python gam.py delete user $username; done < deleteusers.csv
I have modified the above code with the command you are looking to run. I have not tested this, because I do not have a Mac.
white IFS=, read groupname; do python gam.py update group $groupname add member user <email address>; done < groupnames.csv
The contents of the CSV file should be each groups email address followed by a comma.
Assuming groups.csv is a file with all your groups and groupname as the first line, try:
gam csv groups.csv gam update group ~groupname add member us...@example.com
Jay
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 http://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/86b29265-b15a-4327-bd6f-071b88dfb240%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Karl H. Hehr
Technology Director
Ames Community Schools
---------------------------
twitter: karlhehr
skype: karlhehr
--
You received this message because you are subscribed to the Google Groups "Google Apps Manager" 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 http://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/cfc79a6c-5714-41c2-a7cd-aa81bb222866%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 http://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/86b29265-b15a-4327-bd6f-071b88dfb240%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Karl H. Hehr
Technology Director
Ames Community Schools
---------------------------
twitter: karlhehr
skype: karlhehr
--
You received this message because you are subscribed to the Google Groups "Google Apps Manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
THANK YOU EVERYONE! One day totally worth the effort.