-
Notifications
You must be signed in to change notification settings - Fork 473
Command Reference: Users
Eric Kincl edited this page Oct 24, 2018
·
3 revisions
Adapted with love from the GAM Cheat Sheet
gam create | update user <user email> [options]
gam <who> update user [options]
Common options:
- [firstname <First Name>]
- [lastname <Last Name>]
- [password <Password>]
- [email <New Email>]
- [gal on|off]
- [suspended on|off]
- [sha]
- [md5]
- [crypt]
- [nohash]
- [changepassword on|off]
- [org <Org Name>]
Extended options:
- [relation <relation type> <relation value>]
- [externalid <id type> <id value>]
- [phone type <phone type> value <phone value> primary|notprimary]
- [organization
- name <org name>
- title <org title>
- type <org type>
- department <org dept>
- symbol <org symbol>
- costcenter <org cost center>
- location <org location>
- description <org desc>
- domain <org domain>
- primary|notprimary]
- [address
- type <address type>
- unstructured <unstructered address>
- extendedaddress <address extended address>
- streetaddress <address street address>
- locality <address locality>
- region <address region>
- postalcode <address postal code>
- pobox <address pobox>
- countrycode <address country code>
- primary|notprimary]
- [im type <im type> protocol <im protocol> primary <im value>]
- [location
- type <location type>
- area <area>
- building <building>
- desk <desk>
- floor <floor>
- section <section>
- endlocation]
- [sshkeys
- expires <date>
- key <keyvalue>]
- [posixaccounts
- gecos <gecos>
- gid <numeric gid>
- uid <numeric uid>
- home <home path>
- primary true|false
- shell <shell>
- system <systemid>
- username <username>
- endposix]
- [agreedtoterms on|off]
- [schemaname.fieldname <fieldvalue>]
- [schemaname.multivaluefieldname multivalued <fieldvalue>]
Extended options for update only:
- [customerid <string>]
- [otheremail home|work|other|<custom> <email address>]
gam info user <user email>
- [nogroups]
- [noaliases]
- [nolicenses]
- [noschemas]
- [schemas list,of,schemas]
- [userview]
- [skus <list,of,skus>]
gam delete user <user email>
gam undelete user <user email> [org <org Name>]
gam <who> print
- [allfields]
- [custom all|list,of,schemas]
- [userview]
- [ims]
- [emails]
- [externalids]
- [relations]
- [addresses]
- [organizations]
- [phones]
- [licenses]
- [photo]
- [firstname]
- [lastname]
- [emailparts]
- [deleted_only]
- [id]
- [orderby email|firstname|lastname]
- [query <query>]
- [ascending|descending]
- [domain <Domain Name>]
- [fullname]
- [ou]
- [suspended]
- [changepassword]
- [gal]
- [agreed2terms]
- [admin]
- [creationtime]
- [aliases]
- [lastlogintime]
- [groups]
- [ismailboxsetup]
- [todrive]
gam <who> show gmailprofile|gplusprofile [todrive]
Need more help? Ask on the GAM Discussion Group
GAM Basics
GAM Tutorials
- Managing Users, Groups, Aliases, Domains, Mobile and Chrome Devices, and Resource Calendars
- Group Settings
- Data Transfers
- Print Users, Groups, Aliases, Mobile and Chrome OS devices, OUs, Licenses and Reports
- Managing Custom User Schemas
- User Email Settings
- User Security Settings
- Managing Classroom
- Managing Devices
- Chrome Policy Settings
- Chrome Browser Management
- Calendar Settings
- Unmanaged Users and Invitations
- Google Drive Management
- Inbound SSO Settings
- Managing Admins
- Domain Verification
- Printers
- Managing Product Licenses
- Context Aware Access levels
- Managing Organizations
- OAuth Authentication Related Commands
- Vault / Takeout Commands
- Bulk Operations
GAM Command Reference
Resources
- Questions? Visit the GAM Discussion Forum
- How to run GAM on Chromebooks / Chrome OS and Android devices.
- Setting up GAM on Google Cloud Platform (GCP)
- Running GAM on Google Compute Engine (GCE) VMs Securly
- Using GAM with a Delegated Admin Service Account (DASA)
- Use a YubiKey for Service Account Authentication
- Verify a GAM Install is Official and Legimate