Google GAM

From Ever changing code
Revision as of 12:15, 23 January 2017 by Pio2pio (talk | contribs) (→‎Set a forwarding and keep a copy)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Set a forwarding and keep a copy

gam user piotr@example.com forward on ssuser@example.com keep
User: piotr@example.com, Forward Enabled: True, Forwarding Address: ssuser@example.com, Action: leaveInInbox (1/1)

gam user piotr@example.com show forwardingaddress
User: piotr@example.com, Forwarding Addresses: (1/1)
  Forwarding Address: ssuser@example.com, Verification Status: accepted (1/1)

Move users between OUs

gam update org "New Starters" add users ski@example.com
gam update org "New Starters" add file MoveUsersToNewStarterOU.txt

Show backup codes

gam user piotr@example.com show backupcodes

Generate new backup codes

gam user piotr@example.com update backupcodes

Reset Password

gam update user piotr@example.com password Test1234$

Create User

gam create piotr@example.com firstname Piotr lastname Peter password Test1234$
gam csv GoogleAccounts.csv gam create user ~"Email Address" firstname ~"First Name" lastname ~"Last Name" password Test1234$