GAM-team / GAM

command line management for Google Workspace
https://github.com/GAM-team/GAM/wiki
Apache License 2.0
3.45k stars 468 forks source link

Error work is not a valid argument for gam update user #1586

Open anon238 opened 1 year ago

anon238 commented 1 year ago

The issue tracker is for reporting product deficiencies. "How do I?" questions should be posted to the discussion forum at https://groups.google.com/group/google-apps-manager. When in doubt, start at the discussion forum and return here only when instructed to do so.

Please confirm the following:

Full steps to reproduce the issue:

  1. gam update user $NewUser otheremail work $NewUserEmail
  2. ERROR: work is not a valid argument for gam update user

Expected outcome (what are you trying to do?): Updating the otheremail with label work.

Actual outcome (what errors or bad behavior do you see instead?): ERROR: work is not a valid argument for gam update user

taers232c commented 1 year ago

Check that $NewUser is defined; if not, the command looks like this and you get the error.

$ gam update user otheremail work @.***

ERROR: work is not a valid argument for "gam update user"

Ross

Ross Scroggs @.***

On Dec 16, 2022, at 1:27 AM, anon238 @.***> wrote:

The issue tracker is for reporting product deficiencies. "How do I?" questions should be posted to the discussion forum at https://groups.google.com/group/google-apps-manager https://groups.google.com/group/google-apps-manager. When in doubt, start at the discussion forum and return here only when instructed to do so.

Please confirm the following:

I have upgraded to the latest GAM release from https://github.com/GAM-team/GAM/releases https://github.com/GAM-team/GAM/releases and I still have this issue. I am typing the command as described in the GAM Wiki at https://github.com/GAM-team/GAM/wiki https://github.com/GAM-team/GAM/wiki Full steps to reproduce the issue:

gam update user $NewUser otheremail work $NewUserEmail ERROR: work is not a valid argument for gam update user Expected outcome (what are you trying to do?): Updating the otheremail with label work.

Actual outcome (what errors or bad behavior do you see instead?): ERROR: work is not a valid argument for gam update user

— Reply to this email directly, view it on GitHub https://github.com/GAM-team/GAM/issues/1586, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCTYL3OZ7EBQXAS6DDSVL3WNQYYDANCNFSM6AAAAAATAVZRIU. You are receiving this because you are subscribed to this thread.

anon238 commented 1 year ago

Yeah this variable is defined. Before that it’s running gam create user $NewUsername1 firstname $NewUserFirstname1 lastname $NewUserLastname1 changepassword on org / perfectly fine then the next command is Start-Sleep -seconds 10 and the last one is gam update user $NewUsername1 otheremail work $NewUserWEmail

taers232c commented 1 year ago

It's getting undefined somehow; but to solve the problem just add otheremail work $NewUserWEmail to the end of the create command.

anon238 commented 1 year ago

I will test this in a bit. However the next command is gam update user $NewUserName1 password resetlink work can I use this command also in the create user command?

taers232c commented 1 year ago

What is password resetlink work?

Any valid option in update user is valid in create user.

anon238 commented 1 year ago

When you create a new user in Workspace you have an option to send a resetlink to a provided email address. I try to do this in GAM too.

taers232c commented 1 year ago

It's not available in GAM.

anon238 commented 1 year ago

Damn!! Writing the script for nothing 🤣

theanswerco commented 3 months ago

Hi, I need to disable the general settings tab for specific users. Preferibly using gam. I looked for an option "gam update user gmailsetting disable_general_settings true" I received an error "gam update user gmailsetting disable_general_settings true"

taers232c commented 3 months ago

There is no API support for disabling this tab, thus GAM can'r help.

Ross

Ross Scroggs @.***

On Mar 26, 2024, at 4:30 PM, The Answer Company @.***> wrote:

Hi, I need to disable the general settings tab for specific users. Preferibly using gam. I looked for an option "gam update user gmailsetting disable_general_settings true" I received an error "gam update user gmailsetting disable_general_settings true"

— Reply to this email directly, view it on GitHub https://github.com/GAM-team/GAM/issues/1586#issuecomment-2021640258, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCTYLZI72CNIKM2WKQLIVLY2IAKRAVCNFSM6AAAAAATAVZRIWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRRGY2DAMRVHA. You are receiving this because you commented.