taers232c / GAMADV-XTD3

Command line tool to manage Google Workspace
703 stars 87 forks source link

[BUG] gam print group-members formatjson shows "ERROR: Invalid argument" #300

Closed jay-eleven closed 1 year ago

jay-eleven commented 1 year ago

Hi Ross!

It looks like gam print group-members formatjson is not working as expected.

According to the documentation:

gam print group-members 
[...]
[formatjson [quotechar <Character>]]
jay@cloudshell:~/$ gam print group-members    
group,type,role,id,status,email
group1@x.com,USER,MEMBER,zzz1,ACTIVE,user1@x.com
group1@x.com,USER,MEMBER,zzz2,ACTIVE,user2@x.com
group2@x.com,USER,OWNER,zzz3,ACTIVE,user@x.com
group3@x.com,GROUP,MEMBER,zzz4,,g1@x.com
jay@cloudshell:~/$ gam print group-members formatjson
Command: /home/jay/bin/gamadv-xtd3/gam print group-members  >>>formatjson<<< 

ERROR: Invalid argument
Help: Syntax in file /home/jay/bin/gamadv-xtd3/GamCommands.txt
Help: Documentation is at https://github.com/taers232c/GAMADV-XTD3/wiki

Can you please take a look?

taers232c commented 1 year ago

If this is the command:

$ gam print group-members formatjson

Where does the showdeliverysettings come from in the error message

Command: /home/jay/bin/gamadv-xtd3/gam print group-members showdeliverysettings >>>formatjson<<< 

ERROR: Invalid argument
jay-eleven commented 1 year ago

Hmmmm... Let me check, I might have incorrectly redacted the command... 😅😅

jay-eleven commented 1 year ago

I have double checked the command and updated the original comment accordingly. Sorry for the confusion.

Also, already fixed:

jay@cloudshell:~$ gam

GAMADV-XTD3 6.27.05 - https://github.com/taers232c/GAMADV-XTD3 - pyinstaller
Ross Scroggs <ross.scroggs@gmail.com>
Python 3.10.7 64-bit final
Linux Debian 11 Bullseye x86_64

Thanks Ross!

taers232c commented 1 year ago

Here is the command you typed: gam print group-members formatjson

And this is the error message???? Where did showdeliverysettings come from?

Command: /home/jay/bin/gamadv-xtd3/gam print group-members showdeliverysettings >>>formatjson<<<

ERROR: Invalid argument Help: Syntax in file /home/jay/bin/gamadv-xtd3/GamCommands.txt Help: Documentation is at https://github.com/taers232c/GAMADV-XTD3/wiki

On Sat, Sep 10, 2022 at 12:30 PM Jay @.***> wrote:

Hi Ross!

It looks like gam print group-members formatjson is not working as expected.

According to the documentation https://github.com/taers232c/GAMADV-XTD3/wiki/Groups-Membership#display-group-membership-in-csv-format :

gam print group-members [...] [formatjson [quotechar ]]

@.:~/$ gam print group-members @*.**@*.@@.@@.@@. @.***:~/$ gam print group-members formatjson Command: /home/jay/bin/gamadv-xtd3/gam print group-members showdeliverysettings >>>formatjson<<<

ERROR: Invalid argument Help: Syntax in file /home/jay/bin/gamadv-xtd3/GamCommands.txt Help: Documentation is at https://github.com/taers232c/GAMADV-XTD3/wiki

Can you please take a look?

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

-- Ross Scroggs @.***