Bulk Gam Command to block Mobile Devices

524 views
Skip to first unread message

Brian Evans

unread,
Mar 9, 2022, 6:25:21 AM3/9/22
to GAM for Google Workspace
Hi there,

I am looking for a command that will allow me to bulk block devices on the Admin Console.

Not delete or wipe, I just want to block them.

Is there a command that will allow me to upload/add a csv file to a command and block all those devices in the csv in 1 bulk command? 

Many thanks,
Brian

Jay Lee

unread,
Mar 9, 2022, 6:31:22 AM3/9/22
to google-ap...@googlegroups.com
First off, I'd recommend using the devices commands rather than the older mobile commands. The mobile API used by the mobile commands is for iOS/Android devices only and does not support company owned devices.

To block a device:


Jay

--
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/3c2bef15-288c-4a47-be7e-71b64b9e7e1dn%40googlegroups.com.

Brian Evans

unread,
Mar 14, 2022, 12:08:45 PM3/14/22
to GAM for Google Workspace
Hi there,

Did we get anywhere with this ask at all?

Many thanks,
Brian

Jay Lee

unread,
Mar 14, 2022, 12:48:55 PM3/14/22
to google-ap...@googlegroups.com

--
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.

Brian Evans

unread,
Mar 14, 2022, 1:13:20 PM3/14/22
to GAM for Google Workspace
Thanks,

But I cannot see a way to bulk block device id's?

I have a list of device id's in a csv. What is the command to block all device ids's in the csv?

From the guide you linked me, it looks like its only a command to do a device id at a time?

Many thanks,
Brian

Jay Lee

unread,
Mar 14, 2022, 1:24:26 PM3/14/22
to google-ap...@googlegroups.com

--
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.

Temple Rodgers

unread,
Mar 15, 2022, 4:38:23 AM3/15/22
to GAM for Google Workspace
with a csv that has a list headed SerialNumber and the serial numbers one per line below, I think the command would be as follows:
gam csv gam update cros cros_sn ~SerialNumber action disable

I haven't tried it out because I don't want to disable anything!

Temple Rodgers

unread,
Mar 15, 2022, 4:39:24 AM3/15/22
to GAM for Google Workspace
sorry, that's not quite right: gam csv ./fred.csv gam update cros cros_sn ~SerialNumber action disable

Brian Evans

unread,
Mar 15, 2022, 10:27:05 AM3/15/22
to google-ap...@googlegroups.com
Hi there,

I am afraid, I have tried different variations of this command and it does not work. 

I tried the command but replaced "disable" with "block" as I want to block and not disable

It just says 

ERROR: File: /.mopup.csv, [Errno 2] No such file or directory: '/.mopup.csv' 

OR

ERROR: File: ./fred.csv, [Errno 2] No such file or directory: './fred.csv'

Can you help?

Many thanks,
Brian



Disclaimers apply, for full details see: https://hackney.gov.uk/email-disclaimer

--
You received this message because you are subscribed to a topic in the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-manager/AH1_BRud60M/unsubscribe.
To unsubscribe from this group and all its topics, 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/b2a4079d-228b-4a2f-a721-1e153af957ebn%40googlegroups.com.

Ross Scroggs

unread,
Mar 15, 2022, 11:13:43 AM3/15/22
to google-ap...@googlegroups.com
Brian,

Contact me directly with a Meet/Zoom invitation.

Reply all
Reply to author
Forward
0 new messages