From ad5ba656eea1c021b75ac80e9e9ee69b2dfe8f0a Mon Sep 17 00:00:00 2001 From: Ross Scroggs Date: Tue, 17 Feb 2026 16:15:39 -0800 Subject: [PATCH] Improved create drivefileacl error handling --- wiki/GamUpdates.md | 34 +++++++++++++++++++++++ wiki/How-to-Upgrade-Legacy-GAM-to-GAM7.md | 4 +-- wiki/Version-and-Help.md | 12 ++++---- 3 files changed, 42 insertions(+), 8 deletions(-) diff --git a/wiki/GamUpdates.md b/wiki/GamUpdates.md index ab5cc05e..1c274264 100644 --- a/wiki/GamUpdates.md +++ b/wiki/GamUpdates.md @@ -10,6 +10,40 @@ Add the `-s` option to the end of the above commands to suppress creating the `g See [Downloads-Installs-GAM7](https://github.com/GAM-team/GAM/wiki/Downloads-Installs) for Windows or other options, including manual installation +### 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 diff --git a/wiki/How-to-Upgrade-Legacy-GAM-to-GAM7.md b/wiki/How-to-Upgrade-Legacy-GAM-to-GAM7.md index 3edbcf0f..b6fbb58b 100644 --- a/wiki/How-to-Upgrade-Legacy-GAM-to-GAM7.md +++ b/wiki/How-to-Upgrade-Legacy-GAM-to-GAM7.md @@ -252,7 +252,7 @@ writes the credentials into the file oauth2.txt. gamteam@server:/Users/gamteam$ rm -f /Users/gamteam/GAMConfig/oauth2.txt gamteam@server:/Users/gamteam$ gam version WARNING: Config File: /Users/gamteam/GAMConfig/gam.cfg, Section: DEFAULT, Item: oauth2_txt, Value: /Users/gamteam/GAMConfig/oauth2.txt, Not Found -GAM 7.34.03 - https://github.com/GAM-team/GAM - pyinstaller +GAM 7.34.04 - https://github.com/GAM-team/GAM - pyinstaller GAM Team Python 3.14.3 64-bit final macOS Tahoe 26.3 arm64 @@ -1036,7 +1036,7 @@ writes the credentials into the file oauth2.txt. C:\>del C:\GAMConfig\oauth2.txt C:\>gam version WARNING: Config File: C:\GAMConfig\gam.cfg, Section: DEFAULT, Item: oauth2_txt, Value: C:\GAMConfig\oauth2.txt, Not Found -GAM 7.34.03 - https://github.com/GAM-team/GAM - pythonsource +GAM 7.34.04 - https://github.com/GAM-team/GAM - pythonsource GAM Team Python 3.14.3 64-bit final Windows 11 10.0.26200 AMD64 diff --git a/wiki/Version-and-Help.md b/wiki/Version-and-Help.md index f706b063..ad4901f2 100644 --- a/wiki/Version-and-Help.md +++ b/wiki/Version-and-Help.md @@ -3,7 +3,7 @@ Print the current version of Gam with details ``` gam version -GAM 7.34.03 - https://github.com/GAM-team/GAM - pyinstaller +GAM 7.34.04 - https://github.com/GAM-team/GAM - pyinstaller GAM Team Python 3.14.3 64-bit final macOS Tahoe 26.3 arm64 @@ -15,7 +15,7 @@ Time: 2026-02-15T07:51:00-08:00 Print the current version of Gam with details and time offset information ``` gam version timeoffset -GAM 7.34.03 - https://github.com/GAM-team/GAM - pyinstaller +GAM 7.34.04 - https://github.com/GAM-team/GAM - pyinstaller GAM Team Python 3.14.3 64-bit final macOS Tahoe 26.3 arm64 @@ -27,7 +27,7 @@ Your system time differs from www.googleapis.com by less than 1 second Print the current version of Gam with extended details and SSL information ``` gam version extended -GAM 7.34.03 - https://github.com/GAM-team/GAM - pyinstaller +GAM 7.34.04 - https://github.com/GAM-team/GAM - pyinstaller GAM Team Python 3.14.3 64-bit final macOS Tahoe 26.3 arm64 @@ -68,7 +68,7 @@ MacOS High Sierra 10.13.6 x86_64 Path: /Users/gamteam/bin/gam7 Version Check: Current: 5.35.08 - Latest: 7.34.03 + Latest: 7.34.04 echo $? 1 ``` @@ -76,7 +76,7 @@ echo $? Print the current version number without details ``` gam version simple -7.34.03 +7.34.04 ``` In Linux/MacOS you can do: ``` @@ -86,7 +86,7 @@ echo $VER Print the current version of Gam and address of this Wiki ``` gam help -GAM 7.34.03 - https://github.com/GAM-team/GAM +GAM 7.34.04 - https://github.com/GAM-team/GAM GAM Team Python 3.14.3 64-bit final macOS Tahoe 26.3 arm64