This is a work in progress.
GAMADV-X uses a configuration file, gam.cfg, to store the values of the various environment variables and signal files used by earlier versions of GAM. Configuration files client_secrets.json, oauth2.txt, oauth2service.json and extra_args.txt are moved to a version independent location. This should simplify upgrading GAM versions in the future. Additionally, if you support multiple clients/domains or have multiple users running GAM, gam.cfg lets you easily manage your configuration.
GAMADV-X produces better error messages when systax errors are found on the command line.
API error checking
In GAM, most API calls are made without error handling; if an API call fails for a particular item and the command was an operation on multiple items, the items after the failing item are not processed. The GAM solution is to have you produce a CSV file containing the items you want to process; as each item is an independent excution, API failures for some items do not affect other items. Capturing meaningful output from the CSV execution is hard and you have to create the CSV file as a separate step.
In GAMADV-X, every API call is made with error handling; if an API call fails, a message is output and execution continues with additional items if possible.
GAM uses multiprocessing for processing batch files and CSV files; this offers better performance than using threads. Unfortunately, one multiprocess subprocess can not create another subprocess; this prevents using gam csv commands inside GAM batch files.
GAMADV-X supports two commands for processing batch files, batch and tbatch. gam batch uses multiprocessing and gam tbatch uses threads. If you have a batch file that contains gam csv commands, gam tbatch can successfuly process the batch file.
See: Bulk Processing
CSV processing redirects
With GAM, if you want to process a CSV file and capture the output, you do one of the following:
gam csv File.csv gam <Command> > File.out 2> File.err gam csv File.csv gam <Command> > File.out 2>&1
Multiple processes are writing to File.out(.err) simultaneously resulting in interleaved output that can be hard to read.
With GAMADV-X, you can capture the output from the multiple processes such that all of the output from each process is contiguous.
gam redirect stdout ./File.out multiprocess redirect stderr ./File.err multiprocess csv File.csv gam <Command> gam redirect stdout ./File.out multiprocess redirect stderr stderr csv File.csv gam <Command>
You can choose to have GAMADV-X bracket the ouput from each process with lines that show the command being executed.
gam config show_multiprocess_info true redirect stdout ./File.out multiprocess redirect stderr ./File.err multiprocess csv File.csv gam <Command> gam config show_multiprocess_info true redirect stdout ./File.out multiprocess redirect stderr stderr csv File.csv gam <Command>
GAMADV-X has many more ways to specify collections of ChromeOS devices, Users and other items.
See: Collections of Users
See: Collections of Items
Specifying Google Drive files
GAM specifies drive files in different ways based on the command.
GAMADV-X has a consistent way of specifying Google Drive files for all commands.
See: Drive File Selection
Uploading CSV files from gam print commands to Google Drive.
GAM allows no options when you use the todrive option with a gam print command; the file is always uploaded with a fixed name to the root folder of Google Drive for the Google Admin user named in oauth2.txt.
GAMADV-X allows you to specify the name, location and user for files uploaded with todrive; you can also save a local copy of the file.
GAM can manage the list of calendars a user can view; GAMADV-X can also create, modify and remove calendars.
GAM can add and delete events; GAMADV-X can also update, move, show and print events.
GAM can add, update, delete and show calendar ACLs; GAMADV-X can also get ACLs for a single calendar and print a CSV file of calendar ACLs.
See: Users - Calendars
GAMADV-X supports domain shared contacts and user contacts.
See: Users - Contacts
When updating a course, GAM can only add/delete a single alias; GAMADV-X can add/delete multiple aliases.
When updating a course's membership, GAM can only add/delete a single student/teacher; GAMADV-X can add/delete multiple students/teachers.
Drive File Orphans
GAMADV-X allows collecting a user's orphaned files.
Drive File Ownership
GAMADV-X allows transferring ownership of selected folders of a source user to a target user.
GAMADV-X allows claiming ownership of of selected folders to which the user has access.
Drive File Transfer
GAMADV-X has more capabilites for transferring the Google Drive of a source user to a target user.
GAMADV-X allows selecting fields with
GAMADV-X has a more powerful
print group-members command.
See: Group Membership
GAMADV-X supports updating multiple org units in a single command.
See: Organizational Units
GAMADV-X supports managing resource calendar ACLs.
See: Resource Calendars