User Tools

Site Tools


chromebooks:gam_notes

GAM (Google Admin Command Line) Notes/Hints

Set Password

gam update user <username> password <password>

Create User

gam create user <username> firstname <fname> lastname <lname> password <password> changepassword off agreedtoterms off

Suspend User

gam update user <username> suspended on

Create Alias

gam create alias <new alias> user <target user>

Add Users to a Group

gam update group <GROUPNAME>  add member <EMAIL>
gam print orgs

Move Chrome Device to OU

gam update cros <device id> ou "<OU Path>"
gam update cros 04b697c1-32ef-419c-8e93-87d30c9d9eff ou "/Students/Elementary School/1st Grade"

Export Chrome Device CSV

gam print cros full listlimit 1 > CSVFILE

Disable ChromeOS Device

gam update cros e23455de-837a-4389-abdc-92a82526d7ac action disable

Reenable ChromeOS Device

gam update cros <Chrome Device ID> action reenable

Delete a specific email from a users Inbox (Use GAM not GAM-ADV)

Message-ID: <CANPNmCK3mxGzaFUOmV2KPz9K0VCAJg86dZyrChDEpRGPqbb5GQ@mail.gmail.com>

gam user <who> delete|trash|untrash messages|threads
 query <gmail search> [doit] [maxto<action> <number>]


gam user tschulz@g.sebeka.k12.mn.us delete messages query rfc822msgid:CANPNmCK3mxGzaFUOmV2KPz9K0VCAJg86dZyrChDEpRGPqbb5GQ@mail.gmail.com doit

gam all users delete messages query rfc822msgid:CANPNmCK3mxGzaFUOmV2KPz9K0VCAJg86dZyrChDEpRGPqbb5GQ@mail.gmail.com doit

GAM Cheat Sheet From gamcheatsheet.com

Transfer Google Drive file ownership

gam user <SRC Owner> add drivefileacl <FILEID> user <DEST Owner> role owner
chromebooks/gam_notes.txt · Last modified: 2020/04/06 13:20 by tschulz