delete all users in an organization unit

22 views
Skip to first unread message

KNM Zeder

unread,
Jun 28, 2022, 1:55:00 PMJun 28
to google-ap...@googlegroups.com
Hello,

how can I delete all users in a specific organization unit "my-orgunit"?

If I try to delete the users in the admin console, I get the error
"can't delete them because of VAULT." - but VAULT is not active for
them. Is it possible to delete them with gam?

Micha

--
--

Mailadresse nur für die interne Kommunikation in der Wichern-Schule.

Bitte immer statt Namen die Pseudonyme verwenden.

Ross Scroggs

unread,
Jun 28, 2022, 2:14:02 PMJun 28
to google-ap...@googlegroups.com
Micha,

You can try the following but you will probably get the same error:
Standard GAM

gam print users limittoou /my-orgunit | gam csv - gam delete user "~primaryEmail"


Advanced GAM

gam delete users ou /my-orgunit


Ross


--
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/153c80bf-9921-ec74-f1b8-cb6eca5c4309%40wichern-intern.de.


--

Sergio Alvarez

unread,
Jun 28, 2022, 10:02:23 PMJun 28
to GAM for Google Workspace

Hi, 

I would say that you can first export users and filter by OU, then delete users using the CSV already filtered, two steps but it is safer 
Reply all
Reply to author
Forward
0 new messages