taers232c / GAMADV-XTD3

Command line tool to manage Google Workspace
691 stars 86 forks source link

Issue on gam print users with licences #358

Closed dav1303 closed 1 year ago

dav1303 commented 1 year ago

Hi

since yesterday when I launch gma print users xxxxx licences google returns 0 in the count and I do not get any licences information

gam print users query "orgUnitPath='/XXXX'" fields creationtime,lastlogintime,suspended,org licences schemas actions > C:\0-IN\users_gs.csv

regards

dfasc01 commented 1 year ago

I'm also seeing this when running cmds such as gam show/print licenses SKU <SKU>. It's returning a list license types with incorrect figures.

das1 commented 1 year ago

I'm also seeing errors when sync'ing groups to the gwepstaff and gwep licenses, that worked fine a few days ago.

-- Dan Schwartz | LTS - Systems Engineering | Lehigh University | @.*** | 610-758-5061

On Thu, Apr 27, 2023 at 7:06 AM dfasc01 @.***> wrote:

I'm also seeing this when running cmds such as gam show/print licenses SKU . It's returning a list license types with incorrect figures.

— Reply to this email directly, view it on GitHub https://github.com/taers232c/GAMADV-XTD3/issues/358#issuecomment-1525497447, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA5X6DMZCA7TWQJOUX4A3ADXDJHNHANCNFSM6AAAAAAXNOTHWI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

taers232c commented 1 year ago

Google broke licenses printing yesrterday Try: gam print users query "orgUnitPath='/XXXX'" fields creationtime,lastlogintime,suspended,org licences maxresults 100 schemas actions > C:\0-IN\users_gs.csv

Ross

Ross Scroggs @.***

On Apr 27, 2023, at 12:41 AM, dav1303 @.***> wrote:

Hi

since yesterday when I launch gma print users xxxxx licences google returns 0 in the count and I do not get any licences information

gam print users query "orgUnitPath='/XXXX'" fields creationtime,lastlogintime,suspended,org licences schemas actions > C:\0-IN\users_gs.csv

regards

— Reply to this email directly, view it on GitHub https://github.com/taers232c/GAMADV-XTD3/issues/358, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCTYLZUNT6BTNWQIBENNZ3XDIPKTANCNFSM6AAAAAAXNOTHWI. You are receiving this because you are subscribed to this thread.

taers232c commented 1 year ago

6.58.00

Added license_max_results variable to gam.cfg. When retrieving licenses from License API,

this variable controls how many should be retrieved in each chunk. The default value is 100; the range is 100-1000.

As of 2023-04-27, larger numbers cause Google to return an incorrect numbert of licenses.

On Thu, Apr 27, 2023 at 7:12 AM Ross Scroggs @.***> wrote:

Google broke licenses printing yesrterday Try: gam print users query "orgUnitPath='/XXXX'" fields creationtime,lastlogintime,suspended,org licences maxresults 100 schemas actions > C:\0-IN\users_gs.csv

Ross

Ross Scroggs @.***

On Apr 27, 2023, at 12:41 AM, dav1303 @.***> wrote:

Hi

since yesterday when I launch gma print users xxxxx licences google returns 0 in the count and I do not get any licences information

gam print users query "orgUnitPath='/XXXX'" fields creationtime,lastlogintime,suspended,org licences schemas actions > C:\0-IN\users_gs.csv

regards

— Reply to this email directly, view it on GitHub https://github.com/taers232c/GAMADV-XTD3/issues/358, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCTYLZUNT6BTNWQIBENNZ3XDIPKTANCNFSM6AAAAAAXNOTHWI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- Ross Scroggs @.***

dav1303 commented 1 year ago

6.58.00 Added license_max_results variable to gam.cfg. When retrieving licenses from License API, this variable controls how many should be retrieved in each chunk. The default value is 100; the range is 100-1000. As of 2023-04-27, larger numbers cause Google to return an incorrect numbert of licenses. On Thu, Apr 27, 2023 at 7:12 AM Ross Scroggs @.> wrote: Google broke licenses printing yesrterday Try: gam print users query "orgUnitPath='/XXXX'" fields creationtime,lastlogintime,suspended,org licences maxresults 100 schemas actions > C:\0-IN\users_gs.csv Ross ---- Ross Scroggs @. On Apr 27, 2023, at 12:41 AM, dav1303 @.> wrote: Hi since yesterday when I launch gma print users xxxxx licences google returns 0 in the count and I do not get any licences information gam print users query "orgUnitPath='/XXXX'" fields creationtime,lastlogintime,suspended,org licences schemas actions > C:\0-IN\users_gs.csv regards — Reply to this email directly, view it on GitHub <#358>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCTYLZUNT6BTNWQIBENNZ3XDIPKTANCNFSM6AAAAAAXNOTHWI . You are receiving this because you are subscribed to this thread.Message ID: @.> -- Ross Scroggs @.***

Hi Ross

Thanks for this update version but on my side I still get the same issues

Regards

taers232c commented 1 year ago

Send me a Meet/Zoom invitation.

Ross

On Thu, Apr 27, 2023 at 10:48 AM dav1303 @.***> wrote:

6.58.00 Added license_max_results variable to gam.cfg. When retrieving licenses from License API, this variable controls how many should be retrieved in each chunk. The default value is 100; the range is 100-1000. As of 2023-04-27, larger numbers cause Google to return an incorrect numbert of licenses. … <#m7989580551846180529> On Thu, Apr 27, 2023 at 7:12 AM Ross Scroggs @.> wrote: Google broke licenses printing yesrterday Try: gam print users query "orgUnitPath='/XXXX'" fields creationtime,lastlogintime,suspended,org licences maxresults 100 schemas actions > C:\0-IN\users_gs.csv Ross ---- Ross Scroggs @. On Apr 27, 2023, at 12:41 AM, dav1303 @.> wrote: Hi since yesterday when I launch gma print users xxxxx licences google returns 0 in the count and I do not get any licences information gam print users query "orgUnitPath='/XXXX'" fields creationtime,lastlogintime,suspended,org licences schemas actions > C:\0-IN\users_gs.csv regards — Reply to this email directly, view it on GitHub <#358 https://github.com/taers232c/GAMADV-XTD3/issues/358>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCTYLZUNT6BTNWQIBENNZ3XDIPKTANCNFSM6AAAAAAXNOTHWI https://github.com/notifications/unsubscribe-auth/ACCTYLZUNT6BTNWQIBENNZ3XDIPKTANCNFSM6AAAAAAXNOTHWI . You are receiving this because you are subscribed to this thread.Message ID: @.> -- Ross Scroggs @.***

Hi Ross

Thanks for this update version but on my side I still get the same issues

Regards

— Reply to this email directly, view it on GitHub https://github.com/taers232c/GAMADV-XTD3/issues/358#issuecomment-1526093773, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCTYL3CXBU2ZBXDOLSMQCDXDKWNTANCNFSM6AAAAAAXNOTHWI . You are receiving this because you commented.Message ID: @.***>

-- Ross Scroggs @.***

dav1303 commented 1 year ago

6.58.00 Added license_max_results variable to gam.cfg. When retrieving licenses from License API, this variable controls how many should be retrieved in each chunk. The default value is 100; the range is 100-1000. As of 2023-04-27, larger numbers cause Google to return an incorrect numbert of licenses. On Thu, Apr 27, 2023 at 7:12 AM Ross Scroggs @._> wrote: Google broke licenses printing yesrterday Try: gam print users query "orgUnitPath='/XXXX'" fields creationtime,lastlogintime,suspended,org licences maxresults 100 schemas actions > C:\0-IN\usersgs.csv Ross ---- Ross Scroggs @_. On Apr 27, 2023, at 12:41 AM, dav1303 @.> wrote: Hi since yesterday when I launch gma print users xxxxx licences google returns 0 in the count and I do not get any licences information gam print users query "orgUnitPath='/XXXX'" fields creationtime,lastlogintime,suspended,org licences schemas actions > C:\0-IN\usersgs.csv regards — Reply to this email directly, view it on GitHub <#358>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCTYLZUNT6BTNWQIBENNZ3XDIPKTANCNFSM6AAAAAAXNOTHWI . You are receiving this because you are subscribed to this thread.Message ID: @_.> -- Ross Scroggs @_.***

Hi Ross

Thanks for this update version but on my side I still get the same issues

Regards

2 things you asked you put in gam cfg from 100 to 1000 but when I launch the command gam print ... licenses maxresults 1000 it asks to put a value between 100 and 500

When I setup 100 it stills create a file with 0 informations

taers232c commented 1 year ago

Please send me a Meet/Zoom invitation so we can investigate.

Ross

On Thu, Apr 27, 2023 at 11:06 AM dav1303 @.***> wrote:

6.58.00 Added license_maxresults variable to gam.cfg. When retrieving licenses from License API, this variable controls how many should be retrieved in each chunk. The default value is 100; the range is 100-1000. As of 2023-04-27, larger numbers cause Google to return an incorrect numbert of licenses. … <#m-3930659222681743062_> On Thu, Apr 27, 2023 at 7:12 AM Ross Scroggs @.*> wrote: Google broke licenses printing yesrterday Try: gam print users query "orgUnitPath='/XXXX'" fields creationtime,lastlogintime,suspended,org licences maxresults 100 schemas actions > C:\0-IN\usersgs.csv Ross ---- Ross Scroggs @. On Apr 27, 2023, at 12:41 AM, dav1303 @.> wrote: Hi since yesterday when I launch gma print users xxxxx licences google returns 0 in the count and I do not get any licences information gam print users query "orgUnitPath='/XXXX'" fields creationtime,lastlogintime,suspended,org licences schemas actions > C:\0-IN\users_gs.csv regards — Reply to this email directly, view it on GitHub <#358 https://github.com/taers232c/GAMADV-XTD3/issues/358>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCTYLZUNT6BTNWQIBENNZ3XDIPKTANCNFSM6AAAAAAXNOTHWI . You are receiving this because you are subscribed to this thread.Message ID: @. > -- Ross Scroggs @_.

Hi Ross

Thanks for this update version but on my side I still get the same issues

Regards

2 things you asked you put in gam cfg from 100 to 1000 but when I launch the command gam print ... licenses maxresults 1000 it asks to put a value between 100 and 500

When I setup 100 it stills create a file with 0 informations

— Reply to this email directly, view it on GitHub https://github.com/taers232c/GAMADV-XTD3/issues/358#issuecomment-1526114999, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCTYL4A75SYZEIYNZGTQK3XDKYTXANCNFSM6AAAAAAXNOTHWI . You are receiving this because you commented.Message ID: @.***>

-- Ross Scroggs @.***

taers232c commented 1 year ago

Try: gam print users query "orgUnitPath='/XXXX'" fields creationtime,lastlogintime,suspended,org licences maxresults 100 schemas actions > C:\0-IN\users_gs.csv

maxresults in print users was being used to set pagesize for getting users and licenses. Its use for licenses in print users has been removed; only license_max_results is used

dav1303 commented 1 year ago

Try: gam print users query "orgUnitPath='/XXXX'" fields creationtime,lastlogintime,suspended,org licences maxresults 100 schemas actions > C:\0-IN\users_gs.csv

maxresults in print users was being used to set pagesize for getting users and licenses. Its use for licenses in print users has been removed; only license_max_results is used

Hi Ross

Should be fine right now with your suggestion

Thanks a lot

taers232c commented 1 year ago

Are you getting the license data you expect?

Ross

On Thu, Apr 27, 2023 at 2:19 PM dav1303 @.***> wrote:

Try: gam print users query "orgUnitPath='/XXXX'" fields creationtime,lastlogintime,suspended,org licences maxresults 100 schemas actions > C:\0-IN\users_gs.csv

maxresults in print users was being used to set pagesize for getting users and licenses. Its use for licenses in print users has been removed; only license_max_results is used

Hi Ross

Should be fine right now with your suggestion

Thanks a lot

— Reply to this email directly, view it on GitHub https://github.com/taers232c/GAMADV-XTD3/issues/358#issuecomment-1526497968, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCTYL6OO6RREKU7MNPHP2DXDLPH5ANCNFSM6AAAAAAXNOTHWI . You are receiving this because you commented.Message ID: @.***>

-- Ross Scroggs @.***

dav1303 commented 1 year ago

Are you getting the license data you expect? Ross On Thu, Apr 27, 2023 at 2:19 PM dav1303 @.> wrote: Try: gam print users query "orgUnitPath='/XXXX'" fields creationtime,lastlogintime,suspended,org licences maxresults 100 schemas actions > C:\0-IN\users_gs.csv maxresults in print users was being used to set pagesize for getting users and licenses. Its use for licenses in print users has been removed; only license_max_results is used Hi Ross Should be fine right now with your suggestion Thanks a lot — Reply to this email directly, view it on GitHub <#358 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCTYL6OO6RREKU7MNPHP2DXDLPH5ANCNFSM6AAAAAAXNOTHWI . You are receiving this because you commented.Message ID: @.> -- Ross Scroggs @.***

Hi

Yes thanks

taers232c commented 1 year ago

What version of Advanced-GAM do you have? This was resolved in 6.58.00; current is 6.58.02

Ross

On Mon, May 1, 2023 at 2:03 PM leechungkyu @.***> wrote:

I have the same problem. License max count is 200. Our workspace has over 3k users.

Got 0 Licenses for Cloud Identity Free...

Got 0 Licenses for Cloud Identity Premium...

Got 0 Licenses for G Suite Workspace for Education...

Got 0 Licenses for Google Voice...

Got 0 Licenses for G Suite Archived...

Got 0 Licenses for Cloud Search...

Got 0 Licenses for Google Meet Global Dialing...

Got 0 Licenses for G Suite Workspace for Education...

Got 0 Licenses for Assured Controls...

Got 0 Licenses for Beyond Corp...

Got 200 Licenses for Google Workspace...

Got 0 Licenses for Google Chrome Device Management...

Got 0 Licenses for Google Drive Storage...

Got 0 Licenses for Google Vault...

— Reply to this email directly, view it on GitHub https://github.com/taers232c/GAMADV-XTD3/issues/358#issuecomment-1530263683, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCTYL7YAFL2HYEXBHVS7X3XEAQKZANCNFSM6AAAAAAXNOTHWI . You are receiving this because you commented.Message ID: @.***>

-- Ross Scroggs @.***