Move all users in a group to a sub-org

69 views
Skip to first unread message

Ricardo Rodrigues

unread,
Oct 3, 2016, 4:54:30 PM10/3/16
to Google Apps Manager
Hi folks,

I have about 300 users I need to move from a group to a sub-org (OU). Is there a GAM command to move all users from a group in to a sub-org?

Thanks!

Ross Scroggs

unread,
Oct 3, 2016, 5:23:46 PM10/3/16
to google-ap...@googlegroups.com
Ricardo,

If all of the members of the group are users and are members of your domain:
    gam group <GroupName> update user org "/Org/SubOrg"
If some of the members are groups or are users but not in your domain:
    gam print group-members group <GroupName> > groupmembers.csv
    gam csv groupmembers.csv gam update user ~email org "/Org/SubOrg"
This will generate errors for the members that are groups or are users but not in your domain.
You can edit groupmembers.csv to remove these entries before you do gam csv to avoid the errors.

Ross


--
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-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/d636ce10-dcd4-4738-aba1-e6bb154af793%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Ross Scroggs

unread,
Oct 3, 2016, 5:28:20 PM10/3/16
to google-ap...@googlegroups.com
Ricardo,

Another solution: If all of the members of the group are users and are members of your domain:
    gam update org "/Org/SubOrg" add group <GroupName>

Ross

On Mon, Oct 3, 2016 at 2:23 PM, Ross Scroggs <ross.s...@gmail.com> wrote:
Ricardo,

If all of the members of the group are users and are members of your domain:
    gam group <GroupName> update user org "/Org/SubOrg"
If some of the members are groups or are users but not in your domain:
    gam print group-members group <GroupName> > groupmembers.csv
    gam csv groupmembers.csv gam update user ~email org "/Org/SubOrg"
This will generate errors for the members that are groups or are users but not in your domain.
You can edit groupmembers.csv to remove these entries before you do gam csv to avoid the errors.

Ross

On Mon, Oct 3, 2016 at 1:46 PM, Ricardo Rodrigues <rrodr...@crescentschool.org> wrote:
Hi folks,

I have about 300 users I need to move from a group to a sub-org (OU). Is there a GAM command to move all users from a group in to a sub-org?

Thanks!

--
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+unsubscribe...@googlegroups.com.



--



--

Ricardo Rodrigues

unread,
Oct 6, 2016, 5:18:00 PM10/6/16
to Google Apps Manager
Wonderful. Thanks!


On Monday, October 3, 2016 at 5:28:20 PM UTC-4, Ross Scroggs wrote:
Ricardo,

Another solution: If all of the members of the group are users and are members of your domain:
    gam update org "/Org/SubOrg" add group <GroupName>

Ross
On Mon, Oct 3, 2016 at 2:23 PM, Ross Scroggs <ross.s...@gmail.com> wrote:
Ricardo,

If all of the members of the group are users and are members of your domain:
    gam group <GroupName> update user org "/Org/SubOrg"
If some of the members are groups or are users but not in your domain:
    gam print group-members group <GroupName> > groupmembers.csv
    gam csv groupmembers.csv gam update user ~email org "/Org/SubOrg"
This will generate errors for the members that are groups or are users but not in your domain.
You can edit groupmembers.csv to remove these entries before you do gam csv to avoid the errors.

Ross

On Mon, Oct 3, 2016 at 1:46 PM, Ricardo Rodrigues <rrodr...@crescentschool.org> wrote:
Hi folks,

I have about 300 users I need to move from a group to a sub-org (OU). Is there a GAM command to move all users from a group in to a sub-org?

Thanks!

--
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.



--



--
Reply all
Reply to author
Forward
0 new messages