Running list of useful GAM commands
If you admin Google Workspaces and don’t GAM, you should GAM – get it from here. The big command reference list is here, but these are the specific ones I use most often.
Giving access to a mailbox
gam user [email protected] delegate to [email protected]
Checking / updating send as addresses
gam user [email protected] sendas [email protected] "Friendly Name" gam user [email protected] show sendas
Sharing a calendar
gam calendar [email protected] add editor [email protected]
Forwarding email (need to do both commands)
gam user [email protected] add forwardingaddress [email protected]
gam user [email protected] forward on [email protected] <delete | keep>
Find out who owns a file based on Google file ID – there might be a more direct way, but this seems to check the access to the file for all users which will find info for files with restrictive permissions
gam all users show fileinfo <fileID> owners
Give a user permissions / ownership of a file based on Google file ID – you need to know the account of a user with permission to do that
gam user [email protected] add drivefileacl <fileID> user [email protected] role <owner | editor>
Check a user’s vacation / out of office status and message
gam user [email protected] show vacation
Set a user’s vacation / out of office status and message
gam user [email protected] vacation on subject "The reply subject" message "The reply message"