From 6ce8f5dd1056ac9cfe65185044634b81c21eaa92 Mon Sep 17 00:00:00 2001 From: Ross Scroggs Date: Thu, 19 Mar 2026 08:15:50 -0700 Subject: [PATCH] gcpdetails/scopes cleanup #1891 --- wiki/GamUpdates.md | 10 ++++++++++ wiki/How-to-Upgrade-Legacy-GAM-to-GAM7.md | 4 ++-- wiki/Users-Tokens.md | 7 +++++++ wiki/Version-and-Help.md | 12 ++++++------ 4 files changed, 25 insertions(+), 8 deletions(-) diff --git a/wiki/GamUpdates.md b/wiki/GamUpdates.md index 4185e373..b765d1c0 100644 --- a/wiki/GamUpdates.md +++ b/wiki/GamUpdates.md @@ -10,6 +10,16 @@ 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.37.00 + +Added new client access scopes used by `gam print tokens`. +``` +[*] 52) Resource Manager API - Organizations readonly +[*] 53) Resource Manager API - Projects readonly +``` + +Added option `gcpdetails` to `gam print tokens` that uses these scopes to get additional project information. + ### 7.36.03 Added command to send email replies that causes Gmail to recognize the message diff --git a/wiki/How-to-Upgrade-Legacy-GAM-to-GAM7.md b/wiki/How-to-Upgrade-Legacy-GAM-to-GAM7.md index 12388878..d5f6a05a 100644 --- a/wiki/How-to-Upgrade-Legacy-GAM-to-GAM7.md +++ b/wiki/How-to-Upgrade-Legacy-GAM-to-GAM7.md @@ -251,7 +251,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 -GAM 7.36.03 - https://github.com/GAM-team/GAM - pyinstaller +GAM 7.37.00 - https://github.com/GAM-team/GAM - pyinstaller GAM Team Python 3.14.3 64-bit final macOS Tahoe 26.3.1 arm64 @@ -1034,7 +1034,7 @@ writes the credentials into the file oauth2.txt. ``` C:\>del C:\GAMConfig\oauth2.txt C:\>gam version -GAM 7.36.03 - https://github.com/GAM-team/GAM - pythonsource +GAM 7.37.00 - 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/Users-Tokens.md b/wiki/Users-Tokens.md index 99614d18..c43fe7d4 100644 --- a/wiki/Users-Tokens.md +++ b/wiki/Users-Tokens.md @@ -23,14 +23,18 @@ gam delete|del token|tokens clientid ``` gam print tokens|token [todrive *] [clientid ] [orderby clientid|id|appname|displaytext] [delimiter ] + [gcpdetails] gam show tokens|token|3lo|oauth [clientid ] [orderby clientid|id|appname|displaytext] + [gcpdetails] gam print tokens|token [todrive *] [clientid ] [orderby clientid|id|appname|displaytext] [delimiter ] [] + [gcpdetails] gam show tokens|token [clientid ] [orderby clientid|id|appname|displaytext] [delimiter ] [] + [gcpdetails] ``` By default, all client tokens for a user are displayed, use `clientid ` to display a specific client token. @@ -38,6 +42,9 @@ For each user, select the order of token presentation: * `orderby clientid|id` - Display each user's tokens ordered by Client ID * `orderby appname|displaytext` - Display each user's tokens ordered by App Name +Use `gcpdetails` to get project information about the client; you get the project number +and whether it is an internal project. + For `print tokens`: * `delimiter ` - Separate `scopes` entries with ``; the default value is `csv_output_field_delimiter` from `gam.cfg`. diff --git a/wiki/Version-and-Help.md b/wiki/Version-and-Help.md index 0042de0d..06665daa 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.36.03 - https://github.com/GAM-team/GAM - pyinstaller +GAM 7.37.00 - https://github.com/GAM-team/GAM - pyinstaller GAM Team Python 3.14.3 64-bit final macOS Tahoe 26.3.1 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.36.03 - https://github.com/GAM-team/GAM - pyinstaller +GAM 7.37.00 - https://github.com/GAM-team/GAM - pyinstaller GAM Team Python 3.14.3 64-bit final macOS Tahoe 26.3.1 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.36.03 - https://github.com/GAM-team/GAM - pyinstaller +GAM 7.37.00 - https://github.com/GAM-team/GAM - pyinstaller GAM Team Python 3.14.3 64-bit final macOS Tahoe 26.3.1 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.36.03 + Latest: 7.37.00 echo $? 1 ``` @@ -76,7 +76,7 @@ echo $? Print the current version number without details ``` gam version simple -7.36.03 +7.37.00 ``` 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.36.03 - https://github.com/GAM-team/GAM +GAM 7.37.00 - https://github.com/GAM-team/GAM GAM Team Python 3.14.3 64-bit final macOS Tahoe 26.3.1 arm64