Deactivate an account using GAM

18 views
Skip to first unread message

Christopher Estaris

unread,
Jul 15, 2024, 10:33:11 PM (2 days ago) Jul 15
to GAM for Google Workspace
Hello Support,

Is there a GAM command to suspend an bulk accounts?

Thanks.

Maj Marshall Giguere

unread,
Jul 15, 2024, 11:14:05 PM (2 days ago) Jul 15
to google-ap...@googlegroups.com
Chris;

The answer is yes, what you need is a CSV file containing all of the users to be suspended.  The CSV file should  contain  each user's primary email, one per line.  The first line must be a name for the column.  Example file:

primaryEmail
...

With that  file you can have gam iterate over the email addresses in the file and suspend them.

gam csv <name_of_csv_file> gam suspend user "~primaryEmail"


--
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/5690f735-8b01-4e91-be9d-6479e62836edn%40googlegroups.com.

Christopher Estaris

unread,
Jul 15, 2024, 11:19:58 PM (2 days ago) Jul 15
to google-ap...@googlegroups.com
Thank you, Maj.

Christopher O. Estaris
Information and Communication Technologies 
University of Asia and the Pacific


Reply all
Reply to author
Forward
0 new messages