List all Devices MAC Address

222 views
Skip to first unread message

Linux_01

unread,
Feb 21, 2025, 4:24:06 AM2/21/25
to GAM for Google Workspace
Hello Team,

I want to list all Devices (Mobile/Laptop/Desktop etc) MAC Addresses using GAM Command:

gam print mobile fields deviceid,model,name,lastsync,type,serialnumber,useragent,ethernetmacaddress > all_mobile_devices-101.csv

Command: /tmp/staticx-oJMPGH/gam print mobile fields >>>"deviceid,model,name,lastsync,type,serialnumber,useragent,ethernetmacaddress"<<< 

ERROR: Invalid choice (ethernetmacaddress): Expected <adbstatus|applications|basebandversion|bootloaderversion|brand|buildnumber|defaultlanguage|developeroptionsstatus|devicecompromisedstatus|deviceid|devicepasswordstatus|email|encryptionstatus|firstsync|hardware|hardwareid|imei|kernelversion|lastsync|managedaccountisonownerprofile|manufacturer|meid|model|name|networkoperator|os|otheraccountsinfo|privilege|releaseversion|resourceid|securitypatchlevel|serialnumber|status|supportsworkprofile|type|unknownsourcesstatus|useragent|wifimacaddress>

Help: Syntax in file /home/USER/bin/gam7/GamCommands.txt

Help: Documentation is at https://github.com/GAM-team/GAM/wiki

Can someone please guide me on this please.

Linux_01

unread,
Feb 21, 2025, 6:47:17 AM2/21/25
to GAM for Google Workspace
The below command lists the MAC Addresses however only for iPhpne not for Android phones:

gam print mobile fields deviceid,model,name,lastsync,type,serialnumber,useragent,wifimacaddress > all_mobile_devices.csv

How can I get the MAC Addresses for Anroid phones as well?



Linux_01

unread,
Feb 23, 2025, 11:35:12 PM2/23/25
to GAM for Google Workspace
Can anyone please look into this

Ross Scroggs

unread,
Feb 24, 2025, 10:09:47 AM2/24/25
to google-ap...@googlegroups.com
Talk to Google, GAM is reporting what the API returns; if the API doesn't return a value, there is nothing it can do.
If Google can explai how to get the value, the GAM can do it.

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.
To view this discussion visit https://groups.google.com/d/msgid/google-apps-manager/41f29919-2e8c-4748-9ce6-d0790ef2fbb7n%40googlegroups.com.

Jay Lee

unread,
Feb 24, 2025, 10:44:45 AM2/24/25
to google-ap...@googlegroups.com
I'd start by confirming the MAC address for a given device is showing in the admin console. Not all devices / configurations report MAC addresses. As Ross mentioned, GAM can't report anything Google doesn't know about.

Jay Lee


Linux_01

unread,
Feb 27, 2025, 6:06:47 AM2/27/25
to GAM for Google Workspace
How about to listing MAC Address of LAptops/desktops and ipads ? How to go about it ?

Jay Lee

unread,
Feb 27, 2025, 10:34:46 AM2/27/25
to google-ap...@googlegroups.com
As I mentioned before, did you check if MAC address is shown for the device in admin.google.com? GAM can't invent what Google doesn't know. The MAC address needs to show in the admin console if you expect GAM to show that data.

Jay Lee


Message has been deleted

Linux_01

unread,
Mar 1, 2025, 3:54:21 AM3/1/25
to GAM for Google Workspace
Hello Jay,

Yes MAC addresses are showing for windows, linux and MacOS in the Admin Console however its not listing using below gam command:

gam print devices fields deviceid,devicetype,model,name,serialnumber,wifimacaddresses 

Am I using correct command ?

Reply all
Reply to author
Forward
0 new messages