User Tools

Site Tools


chromebooks:gam_notes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
chromebooks:gam_notes [2018/11/15 08:48]
tschulz [Reenable ChromeOS Device]
chromebooks:gam_notes [2019/02/12 13:02]
tschulz
Line 1: Line 1:
 ====== GAM (Google Admin Command Line) Notes/Hints ====== ====== GAM (Google Admin Command Line) Notes/Hints ======
 +
 +===== Set Password =====
 +<​file>​
 +gam update user <​username>​ password <​password>​
 +</​file>​
 +===== Create User =====
 +<​file>​
 +gam create user <​username>​ firstname <​fname>​ lastname <​lname>​ password <​password>​ changepassword off agreedtoterms off
 +</​file>​
 +
 +
 +===== Suspend User =====
 +<​file>​
 +gam update user <​username>​ suspended on
 +</​file>​
 +
 +===== Create Alias =====
 +<​file>​
 +gam create alias <new alias> user <target user>
 +</​file>​
 +
 +===== Add Users to a Group =====
 +<​file>​
 +gam update group <​GROUPNAME> ​ add member <​EMAIL>​
 +</​file>​
  
 ===== Print OUs ===== ===== Print OUs =====
Line 27: Line 52:
 </​file>​ </​file>​
  
 +===== Delete a specific email from a users Inbox =====
 +<​file>​
 +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
 +</​file>​
  
  
 {{ :​chromebooks:​gam-cheat-sheet-a3.pdf |GAM Cheat Sheet PDF}} {{ :​chromebooks:​gam-cheat-sheet-a3.pdf |GAM Cheat Sheet PDF}}
 +
chromebooks/gam_notes.txt · Last modified: 2021/12/08 14:39 by tschulz