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 12:49] tschulz [Create User] |
||
---|---|---|---|
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}} |