Is there a way to exclude members of a group from being added to an OU?

77 views
Skip to first unread message

Patrick Haley

unread,
Sep 4, 2022, 5:57:32 PM9/4/22
to GAM for Google Workspace
I have a handful of Org Units that users are assigned to based on group membership. For example, 

gam update ou "/Corporate" add group corporate_users

Is it also possible to exclude a group in this same operation? For example,

gam update ou "/Corporate" add group corporate_users NOT summer_interns OR temporary_users

Ross Scroggs

unread,
Sep 4, 2022, 6:11:05 PM9/4/22
to google-ap...@googlegroups.com
Patrick,

What are summer_interns and temporary_users?

Ross
----
Ross Scroggs



--
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/310f62a7-df39-42ef-9f30-a7bebf70acecn%40googlegroups.com.

Patrick Haley

unread,
Sep 4, 2022, 6:14:08 PM9/4/22
to GAM for Google Workspace
Sorry those are the groups. corpora...@email.com, summer_...@email.com, and tempora...@email.com. Due to how our systems are configured, summer_interns and temporary_users are also members of corporate_users. So I want to add all members of corporate_users to an OU, but not members of summer_intens, etc.

Ross Scroggs

unread,
Sep 4, 2022, 6:20:36 PM9/4/22
to google-ap...@googlegroups.com
Patrick,

This commandwill only add members of the corporate_users group.
gam update ou "/Corporate" add group corporate_users

Are you saying that some users used to be in corporate_users and are now in summer_interns or temporary_users?

Send me a Meet/Zoom invitation.

Ross

----
Ross Scroggs


Ross Scroggs

unread,
Sep 4, 2022, 6:33:43 PM9/4/22
to google-ap...@googlegroups.com
Patrick,

What about the following; do not run without talking to me.
Make another group corponly
gam update group corponly sync members group corporate_users
gam update group corponly remove members groups summer_interns,temporary_users

gam update ou "/Corporate" sync group corponly

What OUs should summer_interns and temporary_users be in?

Ross
----
Ross Scroggs


Ross Scroggs

unread,
Sep 8, 2022, 2:30:32 PM9/8/22
to google-ap...@googlegroups.com
Patrick,

Do you still need help with this?

Ross
--

Patrick Haley

unread,
Sep 12, 2022, 11:24:15 PM9/12/22
to GAM for Google Workspace
Hey Ross,

Thank you for checking in. I have not had the opportunity to do any testing just yet. I think I should be good though based on your feedback. 

Ross Scroggs

unread,
Sep 13, 2022, 12:09:56 AM9/13/22
to google-ap...@googlegroups.com
Patrick,

My solution is not complete utnil I get more information; do not proceed without Meeting with me.

I'm in California(PDT UTC-7) nad ma generally available start at 7:45AM. What timezone are you in?

Ross
----
Ross Scroggs



Patrick Haley

unread,
Sep 13, 2022, 12:52:57 AM9/13/22
to google-ap...@googlegroups.com
No problem at all. I'm in CDT. How does 1pm tomorrow sound?

You received this message because you are subscribed to a topic in the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-manager/g0npGwnFZWw/unsubscribe.
To unsubscribe from this group and all its topics, 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/4A0F31D2-B15B-4BE9-A3B4-534B28C6AA83%40gmail.com.


--
Patrick Haley

Head of Global IT & Systems


Franchisor Team | United States

1114 South Saint Mary's St, #110, San Antonio TX, 78210

M: +1 210 478 2081

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. The content and opinions contained in this email are not able to be copied or sent to any other recipient without the author’s permission. If you have received this email in error please contact the sender.

Patrick Haley

unread,
Sep 13, 2022, 1:00:56 AM9/13/22
to GAM for Google Workspace
To clarify, 1:00 PM PDT on Tuesday. 

Patrick Haley

unread,
Sep 14, 2022, 5:40:57 AM9/14/22
to GAM for Google Workspace
Hey Ross, wanted to say thanks again for your time. I sincerely appreciate your help. 
Reply all
Reply to author
Forward
0 new messages