Is there a way

78 views
Skip to first unread message

Rick Humphrey

unread,
Jun 26, 2025, 11:46:41 AMJun 26
to GAM for Google Workspace
I am using advance gam
Our root domain is called domain.com
Under that we have Staff and Students
I have been using this  
gam all users delete othercontacts emailmatchpattern won...@domain.com

This leads to way too many accounts to purge the email from othercontacts

How can I do this quicker using Staff and Students

Thanks all

Ross Scroggs

unread,
Jun 26, 2025, 12:49:58 PMJun 26
to google-ap...@googlegroups.com
gam, ou_and_children /Staff delete othercontacts emailmatchpattern won...@domain.com
gam, ou_and_children /Students delete othercontacts emailmatchpattern won...@domain.com

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 visit https://groups.google.com/d/msgid/google-apps-manager/d839e5b4-2bc1-48d3-b1ed-eaf8901c3370n%40googlegroups.com.

Rick Humphrey

unread,
Jun 27, 2025, 8:35:09 AMJun 27
to google-ap...@googlegroups.com
Thanks Ross
Now is there a way we can avoid not using the Suspended OU?
Example Under Student/Suspended so that it only looks at active users
We have the same with Staff/Suspended
I guess in essent that it only looks for active users which are not Suspended under Staff and Students



--

Rick Humphrey
Wolf Creek Public Schools
Technology Services

Ross Scroggs

unread,
Jun 27, 2025, 9:48:34 AMJun 27
to google-ap...@googlegroups.com

Rick Humphrey

unread,
Jun 30, 2025, 8:39:14 AMJun 30
to google-ap...@googlegroups.com
What would the full command be? Is it this?

gam  ou_and_children_ns  /Staff delete othercontacts emailmatchpattern won...@domain.com 

Ross Scroggs

unread,
Jun 30, 2025, 9:21:24 AMJun 30
to google-ap...@googlegroups.com

Rick Humphrey

unread,
Jun 30, 2025, 10:39:34 AMJun 30
to google-ap...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages