How to get started with Google Apps Manager (GAM)
By Patronum
March 17, 2023
Read Time: 3 mins
By Patronum
March 17, 2023
Read Time: 3 mins
The Google Apps Manager (or just GAM) is a command-line tool for automation and bulk operations for Google Workspace administrators. Once you start working with GAM and start using GAM scripts, you can also save some of those scripts that do things for your organisation. You can reset the entire company’s passwords or rename your domain with a single script. In short, you can do very, very powerful things very, very fast. In addition, it can provide you with valuable insights into your Google Workspace instance.
However it should be noted that while GAM is extremely powerful, “with great power, comes great responsibility”, and it very easy to damage your Google Workspace environment if you don’t know exactly what you are doing. Hopefully this quick introduction will allow you to experiment with GAM in a controlled manner. Below is a quick introduction to how you can use GAM and simplify a lot of administrative tasks.
You may want to use GAM as a system administrator to manually run bulk operations like:
It’s likely that you already use the Google Admin Console to handle some of these tasks, but eventually, you’ll find that some tasks are too time-consuming to handle manually via clicks. GAM is there to help in these situations. Suppose you’re an IT administrator for a school or university. In that case, you can imagine how long it would take to suspend 100+ users passing out each year from the Google Admin Console or how long it would take to check how many Google Workspace licenses are active and being used. By using GAM, you can accomplish this in a matter of seconds.
After installing, open your command-line tool and run these three commands in the specified order:
Congratulations, you have successfully installed GAM. You can now try running these scripts in your command-line tool:
(The script lists every Google Workspace user in your organisation in a Google Sheet that can be accessed from your Google Drive.)
(This script will generate a Google Sheet of all Google Workspace users, including their first and last names, last login times, and license types.)
(This script creates a Google Sheet with all groups’ data with information such as settings, members, owners, managers, etc. You can access the Google Sheet from your Google Drive account.)
GAMADV Project Home Page: https://github.com/taers232c/GAMADV-XTD3
GAM Scripts: https://github.com/taers232c/GAM-Scripts3
Wiki: https://github.com/taers232c/GAMADV-XTD3/wiki
Others’ Contributions: https://github.com/taers232c/GAMADV-XTD3/wiki/Other-Resources
GAM cheat sheet for you – https://gamcheatsheet.com/
GAM Discussion Group: https://groups.google.com/g/google-apps-manager
GAM Updates: https://github.com/taers232c/GAMADV-XTD3/wiki/GamUpdates
The original GAM: https://github.com/jay0lee/GAM