From b818002202ee3959de5b6aa3fe216dca341aa07c Mon Sep 17 00:00:00 2001 From: Ross Scroggs Date: Wed, 27 Aug 2025 19:38:24 -0700 Subject: [PATCH] Update `gam info user ` to eliminate 5 second delay when getting license info. --- wiki/GamUpdates.md | 7 +++++++ wiki/How-to-Upgrade-Legacy-GAM-to-GAM7.md | 4 ++-- wiki/Licenses.md | 22 ++++++++++++++++++++++ wiki/Version-and-Help.md | 12 ++++++------ 4 files changed, 37 insertions(+), 8 deletions(-) diff --git a/wiki/GamUpdates.md b/wiki/GamUpdates.md index 118817b4..07a4d557 100644 --- a/wiki/GamUpdates.md +++ b/wiki/GamUpdates.md @@ -10,6 +10,13 @@ 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.19.02 + +Update `gam info user ` to eliminate 5 second delay when getting license info. + +Additional information: +* See: https://github.com/GAM-team/GAM/wiki/Licenses#info-user-performance + ### 7.19.01 Updated `gam print|show signature` to handle the following error diff --git a/wiki/How-to-Upgrade-Legacy-GAM-to-GAM7.md b/wiki/How-to-Upgrade-Legacy-GAM-to-GAM7.md index f0877775..247709f4 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. admin@server:/Users/admin$ rm -f /Users/admin/GAMConfig/oauth2.txt admin@server:/Users/admin$ gam version WARNING: Config File: /Users/admin/GAMConfig/gam.cfg, Section: DEFAULT, Item: oauth2_txt, Value: /Users/admin/GAMConfig/oauth2.txt, Not Found -GAM 7.19.01 - https://github.com/GAM-team/GAM - pyinstaller +GAM 7.19.02 - https://github.com/GAM-team/GAM - pyinstaller GAM Team Python 3.13.7 64-bit final MacOS Sequoia 15.6.1 x86_64 @@ -990,7 +990,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.19.01 - https://github.com/GAM-team/GAM - pythonsource +GAM 7.19.02 - https://github.com/GAM-team/GAM - pythonsource GAM Team Python 3.13.7 64-bit final Windows-10-10.0.17134 AMD64 diff --git a/wiki/Licenses.md b/wiki/Licenses.md index 19422f04..f741374f 100644 --- a/wiki/Licenses.md +++ b/wiki/Licenses.md @@ -3,6 +3,7 @@ - [License Products and SKUs](#license-products-and-skus) - [Definitions](#definitions) - [Notes](#Notes) +- [Info User Performance](#info-user-performance) - [Display license counts](#display-license-counts) - [Display licenses](#display-licenses) - [Add licenses](#add-licenses) @@ -233,6 +234,27 @@ nv:: ``` The first `` is a Product and the second `` is a SKU. +## Info User Performance + +In GAM versions prior 7.18.05, when you did `gam info user`, GAM would make one attempt to get the user's licenses. +If something went wrong, you might not get the complete list. + +The License Manager API doesn't have a call that returns the list of licenses that a user has; you have to ask: +``` +Does user have license SKU 1? +Does user have license SKU 2? +Does user have license SKU 3? +... +Does user have license SKU 73? +``` +If you do a couple of info user commands back to back, you start to run into quota issues. + +You can help yourself in the following way: generate a list of all of the SKUs that exist in your workspace. + +Then do (example, use actual list): gam config license_skus 1010020028,1010070001, ... save +Now, rather that asking 73 questions per user, GAM will only ask about the license SKUs in the list. +It is much less likely that quota issues will occur, + ## Display license counts ``` gam show licenses diff --git a/wiki/Version-and-Help.md b/wiki/Version-and-Help.md index 6bd067ec..5f17fcf4 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.19.01 - https://github.com/GAM-team/GAM - pyinstaller +GAM 7.19.02 - https://github.com/GAM-team/GAM - pyinstaller GAM Team Python 3.13.7 64-bit final MacOS Sequoia 15.6.1 x86_64 @@ -15,7 +15,7 @@ Time: 2023-06-02T21:10:00-07:00 Print the current version of Gam with details and time offset information ``` gam version timeoffset -GAM 7.19.01 - https://github.com/GAM-team/GAM - pyinstaller +GAM 7.19.02 - https://github.com/GAM-team/GAM - pyinstaller GAM Team Python 3.13.7 64-bit final MacOS Sequoia 15.6.1 x86_64 @@ -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.19.01 - https://github.com/GAM-team/GAM - pyinstaller +GAM 7.19.02 - https://github.com/GAM-team/GAM - pyinstaller GAM Team Python 3.13.7 64-bit final MacOS Sequoia 15.6.1 x86_64 @@ -64,7 +64,7 @@ MacOS High Sierra 10.13.6 x86_64 Path: /Users/Admin/bin/gam7 Version Check: Current: 5.35.08 - Latest: 7.19.01 + Latest: 7.19.02 echo $? 1 ``` @@ -72,7 +72,7 @@ echo $? Print the current version number without details ``` gam version simple -7.19.01 +7.19.02 ``` In Linux/MacOS you can do: ``` @@ -82,7 +82,7 @@ echo $VER Print the current version of Gam and address of this Wiki ``` gam help -GAM 7.19.01 - https://github.com/GAM-team/GAM +GAM 7.19.02 - https://github.com/GAM-team/GAM GAM Team Python 3.13.7 64-bit final MacOS Sequoia 15.6.1 x86_64