This shows you the differences between two versions of the page.
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:04] tschulz [Delete a specific email from a users Inbox] |
||
---|---|---|---|
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 25: | Line 50: | ||
<file> | <file> | ||
gam update cros <Chrome Device ID> action reenable | gam update cros <Chrome Device ID> action reenable | ||
+ | </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> | </file> | ||
+ | {{ :chromebooks:gam-cheat-sheet-a3.pdf |GAM Cheat Sheet }} [[https://gamcheatsheet.com/|From gamcheatsheet.com ]] | ||
- | {{ :chromebooks:gam-cheat-sheet-a3.pdf |GAM Cheat Sheet PDF}} |