Open anon238 opened 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 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.
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
It's getting undefined somehow; but to solve the problem just add otheremail work $NewUserWEmail
to the end of the create command.
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?
What is password resetlink work
?
Any valid option in update user is valid in create user.
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.
It's not available in GAM.
Damn!! Writing the script for nothing 🤣
Hi, I need to disable the general settings tab for specific users. Preferibly using gam. I looked for an option "gam update user
There is no API support for disabling this tab, thus GAM can'r help.
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.
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:
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