Org unit to a group

411 views
Skip to first unread message

Ed Gonzales

unread,
Sep 13, 2012, 11:38:25 AM9/13/12
to google-ap...@googlegroups.com
Is there a way to add org units to a email group? Now that kids are in
the domain we can't use the "all users" option anymore and dot want to
add individually.

"complexity breeds confusion and dissatisfaction"

- Henry David Thoreau

Karl Hehr

unread,
Sep 19, 2012, 7:49:58 PM9/19/12
to google-ap...@googlegroups.com
I would recommend looking at GAM (Google Apps Manager) you can do this with one little line in terminal:

gam update org PATHTOOU addgroup GROUPNAME

-- Karl Hehr


--
You received this message because you are subscribed to the "Google Apps Manager" group.
To post to this group, send email to
google-ap...@googlegroups.com
To unsubscribe from this group, send email to
google-apps-man...@googlegroups.com
For more options, visit this group at
https://groups.google.com/forum/#!forum/google-apps-manager

Cliff Wakefield

unread,
Sep 19, 2012, 8:11:30 PM9/19/12
to google-ap...@googlegroups.com
Hi,

That command adds users to an org unit based on a group.

Not add users to a group based on their org unit.

The ability to maintain a group based on org unit or another attribute is a very frequently requested feature missing from the Google Apps platform.

The best you could hope for at the moment is a scheduled job that dumps the users in an org unit, then dumps the users in the group, then figures out the delta, and adds or removes users as needed.

It would be great if you could disable users unsubscribing from a group or changing their email preference to 'No email' so communications through the Group could be relied upon.

Cliff Wakefield
Technical Lead, GoogleApps@RMIT

Information Technology Service
RMIT University
Postal: GPO Box 2476, Melbourne, Victoria, Australia 3001
Location: Building 158, 300 Queen Street, Melbourne, Australia 3000

Jay Lee

unread,
Sep 20, 2012, 8:25:13 AM9/20/12
to google-ap...@googlegroups.com
It wouldn't be hard to script something out that lists users in an OU and then adds them to a group. Psuedocode:
  • "gam info org "Source organization" (filter output for '@' to get all users)

  • foreach user from above 'gam update group targe...@yourdomain.com add member $user
that would be a onetime push. If you actually wanted an ongoing sync (only add new members of OU, remove users moved out of OU), you'd need to do a "gam info group" and diff the OU and the group users to determine who needs to be added and who needs to be removed.

Regards,

Jay Lee
LCS Deployment Lead   |  ⚡ Dito
Reply all
Reply to author
Forward
0 new messages