Google GAM

From Ever changing code
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$