Removing users from google directory

314 views
Skip to first unread message

Tony Nelson

unread,
May 31, 2024, 2:31:58 PM5/31/24
to GAM for Google Workspace
Is there a gam command to remove users from the directory?  Where I'm at do not delete users, they suspend their accounts.  I also need to remove them form the directory so they don't pop up in gmail or anywhere if you start typing their info in.

Ross Scroggs

unread,
May 31, 2024, 2:33:30 PM5/31/24
to google-ap...@googlegroups.com
gam update user us...@domain.com gal off

Ross
----
Ross Scroggs



On May 31, 2024, at 11:31 AM, Tony Nelson <tony....@howardschool.org> wrote:

Is there a gam command to remove users from the directory?  Where I'm at do not delete users, they suspend their accounts.  I also need to remove them form the directory so they don't pop up in gmail or anywhere if you start typing their info in.

--
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/6ba2f6b8-71a3-46cb-8ea9-c7f13d11e99bn%40googlegroups.com.

Mike Beane

unread,
May 31, 2024, 3:54:40 PM5/31/24
to google-ap...@googlegroups.com
try:

gam update user som...@email.com gal off

"gal on" to turn it back on

gal = global access list


Search for "gal off" in the text


On Fri, May 31, 2024 at 3:04 PM Tony Nelson <tony....@howardschool.org> wrote:
Is there a gam command to remove users from the directory?  Where I'm at do not delete users, they suspend their accounts.  I also need to remove them form the directory so they don't pop up in gmail or anywhere if you start typing their info in. --

Farux Mirzakulov

unread,
Jul 23, 2024, 7:07:49 AM7/23/24
to GAM for Google Workspace
Good afternoon, can you tell me what command to mass delete users from the Google directory?

пятница, 31 мая 2024 г. в 23:31:58 UTC+5, Tony Nelson:

Ross Scroggs

unread,
Jul 23, 2024, 10:12:20 AM7/23/24
to google-ap...@googlegroups.com
Make a CSV file Users.csv with one column: primaryEmail

primaryEmail
...

gam csv Users.csv gam update user "~primaryEmail" gal off

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.

Farux Mirzakulov

unread,
Jul 24, 2024, 12:44:21 AM7/24/24
to GAM for Google Workspace
Thank you very much I found a solution
Bulk remove users from Google directory using this command
gam csv <CSV File Name>.csv gam delete user ~email


вторник, 23 июля 2024 г. в 19:12:20 UTC+5, Ross Scroggs:
Reply all
Reply to author
Forward
0 new messages