remove disabled account from all groups

301 views
Skip to first unread message

Zack Frangidakis

unread,
Sep 13, 2023, 9:03:32 AM9/13/23
to GAM for Google Workspace
I have about 950 accounts in a disabled accounts OU that I need to remove from their various  groups.  How can I go about this?  

Zack Frangidakis

unread,
Sep 13, 2023, 9:42:42 AM9/13/23
to GAM for Google Workspace
Update:

I came across this command which did the job....


gam csv NoGroupsUsers.csv gam user "~primaryEmail" delete groups

Bassel Massamiri

unread,
Sep 13, 2023, 9:44:27 AM9/13/23
to google-ap...@googlegroups.com
gam user f...@domain.com delete groups

On Wed, Sep 13, 2023 at 9:03 AM Zack Frangidakis <frangi...@dist102.k12.il.us> wrote:
I have about 950 accounts in a disabled accounts OU that I need to remove from their various  groups.  How can I go about this?  

--
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/9eae775b-b9ca-4ea2-9609-80fb80c238f0n%40googlegroups.com.

Ross Scroggs

unread,
Sep 13, 2023, 9:48:00 AM9/13/23
to google-ap...@googlegroups.com
gam ou /DisabledAcctsOU delete groups

Replace /DisabledAcctsOU with the actual OU.

Ross



--
Reply all
Reply to author
Forward
0 new messages