# Update GAM7 to latest version Automatic update to the latest version on Linux/Mac OS/Google Cloud Shell/Raspberry Pi/ChromeOS: - Do not create project or authorizations, default path `$HOME/bin` - `bash <(curl -s -S -L https://git.io/gam-install) -l` - Do not create project or authorizations, specify a path - `bash <(curl -s -S -L https://git.io/gam-install) -l -d ` By default, a folder, `gam7`, is created in the default or specified path and the files are downloaded into that folder. Add the `-s` option to the end of the above commands to suppress creating the `gam7` folder; the files are downloaded directly into the default or specified path. See [Downloads-Installs-GAM7](https://github.com/GAM-team/GAM/wiki/Downloads-Installs) for Windows or other options, including manual installation ### 7.36.00 Added options `filtermultiattrtype` and filtermultiattrcustom` to `gam info user` and `gam print users` that support filtering `` display based on `type` or `customType`. ``` ::= address|addresses| externalid|externalids| im|ims| keyword|keywords| location|locations| orgainzation|organizations| otheremail|otheremails| phone|phones| relation|relations| website|websites ``` * `filtermultiattrtype ` - Display `` if its `type` is `` * `filtermultiattrcustom ` - Display `` if its `customType` is `` ``` gam info user user@domain.com quick filtermultiattrtype organizations work filtermultiattrcustom phones private ``` ### 7.35.03 Updated `gam print filelist|filecounts` to handle options `showsize` and `showsizeunits` as independent options. * `showsize` - Display a column `Size` with a byte count * `showsizeunits` - Display a column `SizeUnits` with a formatted size with units If you select both options, you can sort multiple rows using the `Size` column. ### 7.35.02 Added option `showsizeunits` to `gam gam print filelist|filecounts` as an alternative to option `showsize`. * `showsize` - 31549200951 - This is a byte count * `showsizeunits` - 31.55 GB - This is as shown in the Admin console ### 7.35.01 The following commands have been updated to not verify the existence of `gam.cfg` credentials files as the WARNING messages about the missing files can be confusing to new users setting up GAM. ``` gam checkconn gam oauth|oauth2 gam version ``` ### 7.35.00 Windows `gam-7.wx.yz-x86_64.msi` has been replaced with `gam-7.wx.yz-x86_64.exe`. Windows `gam-7.wx.yz-arm64.msi` has been replaced with `gam-7.wx.yz-arm64.exe`. Updated cacerts.pem to avoid to following error in `gam checkconn`. ``` Checking raw.githubusercontent.com (185.199.110.133) (2)... ERROR Certificate verification failed. If you are behind a firewall / proxy server that does TLS / SSL inspection you may need to point GAM at your certificate authority file by setting cacerts_pem = /path/to/your/certauth.pem in gam.cfg. ``` If you have customized cacerts.pem, update your version with the `Operating CA: Let's Encrypt` values from the GAM default version. ### 7.34.13 Fixed bug in `gam info policies ... formatjson` where extraneous line `Show Info 1 Policy` was displayed. ### 7.34.12 Fixed build errors that prevented Windows zip files from being created. Added option `returnidonly` to `gam create|update printer` that causes GAM to return just the ID of the printer. ### 7.34.11 Updated gam-install.sh script for macOS/Linux to properly config GAM when the answer to the following question is No. ``` Can you run a full browser on this machine? (usually Y for macOS, N for Linux if you SSH into this machine) ``` ### 7.34.10 Fixed bug where `formatjson quotechar ` on the command line did not override `redirect csv multiprocess quotechar `. ### 7.34.09 Updated `gam update photo` to delete the user's existing photo before performing the update as the API update will succeed but not replace a user's existing self-set photo. ### 7.34.08 Rebuild to avoid the following error: ``` requests/__init__.py:113: RequestsDependencyWarning: urllib3 (2.6.3) or chardet (6.0.0.post1)/charset_normalizer (3.4.4) doesn't match a supported version! ``` ### 7.34.07 Added the following command to create a guest user. * See: https://support.google.com/a/answer/16558545 ``` gam create guestuser ``` Added the following items to ``: * `guestaccountinfo` - Additional guest-related metadata fields * `isguestuser` - Indicates if the inserted user is a guest ### 7.34.06 Added option `copyfolderpermissions []` to `gam copy|move drivefile`. When `copyfolderpermissions false` is specified, no folder permissions are copied; this simplifies disabling all folder permission copying. When not specified or `copyfolderpermissions [true]` is specified, folder permissions are copied based on the following options: ``` copymergewithparentfolderpermissions [] copymergedtopfolderpermissions [] copytopfolderpermissions [] copytopfolderiheritedpermissions [] copytopfoldernoniheritedpermissions never|always|syncallfolders|syncupdatedfolders copymergedsubfolderpermissions [] copysubfolderpermissions [] copysubfolderinheritedpermissions [] copysubfoldernoniheritedpermissions never|always|syncallfolders|syncupdatedfolders ``` ### 7.34.05 Updated `gam report ` to perform a reverse chronological sort on all rows across multiple users and/or event names; this is consistent with the behavior in the Admin console. Use option `notimesort` to suppress this sort. ### 7.34.04 Updated `gam create drivefileacl user role owner` to better handle the case where the current owner of a file is suspended. Previously, the command was displayed as an error even though the ownership was changed. ``` gam user currentowner@domain.com add drivefileacl user newowner@domain.com role owner User: currentowner@domain.com, Add 1 Drive File/Folder ACL User: currentowner@domain.com, Drive File/Folder ID: , Permission ID: newowner@domain.com, Add Failed: Sorry, the items were successfully shared but emails could not be sent to newowner@domain.com. ``` Now the command is displayed as a success with a note indicating that the ownership change email was not sent. ``` gam user currentowner@domain.com add drivefileacl user newowner@domain.com role owner User: currentowner@domain.com, Add 1 Drive File/Folder ACL User: currentowner@domain.com, Drive File/Folder ID: , Permission ID: newowner@domain.com, Added: Sorry, the items were successfully shared but emails could not be sent to newowner@domain.com. New Owner id: 10834698115409747890 type: user emailAddress: newowner@domain.com domain: domain.com role: owner permissionDetails: role: writer type: file inherited: True inheritedFrom: Unknown role: owner type: file inherited: False deleted: False pendingOwner: False ``` ### 7.34.03 Updated to Python 3.14.3 Updated Cryptography to 46.0.5 Updated `gam course create student|teacher ` error message when `` is not in a trusted domain to remove suggestion about creating an invitation. ### 7.34.02 Updated GAM to prevent errors like the following: ``` ERROR: Unable to find the server at oauth2.googleapis.com ERROR: Unable to find the server at gmail.googleapis.com ``` If you experience any unexpected errors, post a message to: * The GAM Discussion Forum (google-apps-manager@googlegroups.com) * The GAM Public Chat Room (https://chat.google.com/app/chat/AAAA4BULhWo) ### 7.34.01 Updated `gam create|update adminrole` to handle the following errors: ``` ERROR: 400: invalid - Invalid Role privileges ERROR: 400: required - Required parameter: [resource.privileges[n].service_id] ``` ### 7.34.00 Added variable `csv_output_header_required` to `gam.cfg` that is a comma separated list of `` that are required to be in the list of column headers in the CSV file written by a gam print command. This will typically be used to specify headers that are required in subsequent commands that process the CSV file even if the API didn't return any data for those columns. Updated the following commands to not require the `Directory API - Domains` scope unless the `internal` or `external` options are used to request the member category. ``` gam info|print groups gam print|show group-members gam info|print cigroups gam print|show cigroup-members gam print|show filesharecounts ``` ### 7.33.03 Fixed bug in `gam [] sendemail ... from replyto ` where an `` of the form `Text ` had the `Text` removed. ### 7.33.02 Added `hideinvitationssetting` to `` used by `gam print|show calsettings`. ### 7.33.01 Added option `shownopolicy` to `gam print chromepolicies` that will display output like the following if no policies apply to the selected OU or group. ``` gam print chromepolicies ou /Test appid chrome:emidddocikgklceeeifefomdnbkldhng namespace chrome.users.apps shownopolicy Getting all Chrome Policies that match query (chrome.users.apps.*) for /Test Got 0 Chrome Policies that matched query (chrome.users.apps.*) for /Test... name,orgUnitPath,parentOrgUnitPath,direct,appId noPolicy,/Test,/,False,chrome:emidddocikgklceeeifefomdnbkldhng ``` ### 7.33.00 Added variable `developer_preview_apis` to `gam.cfg` that is a comma separated list of APIs requiring a Developer Preview key. Currently, `chat` is the only API that requires a Developer Preview key; it is required for the User Sections commands. * See: https://github.com/GAM-team/GAM/wiki/Users-Chat#introduction * See: https://github.com/GAM-team/GAM/wiki/Users-Chat#manage-chat-user-sections ### 7.32.07 Added option `includepermissionsforview published` to `gam print filelist` and `gam show fileinfo`. From the Drive API documentation: ``` Specifies which additional view's permissions to include in the response. Only published is supported. ``` ### 7.32.06 Added options to `gam copy drivefile ... copysubfiles` to limit copying to files whose `modifiedTime` meets specified requirements. * `start|starttime |