Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
anon238 opened this issue Dec 16, 2022 · 10 comments
Open

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

anon238 opened this issue Dec 16, 2022 · 10 comments

Comments

@anon238
Copy link

anon238 commented Dec 16, 2022

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
Copy link
Contributor

taers232c commented Dec 16, 2022 via email

@anon238
Copy link
Author

anon238 commented Dec 16, 2022

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
Copy link
Contributor

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

@anon238
Copy link
Author

anon238 commented Dec 16, 2022

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
Copy link
Contributor

What is password resetlink work?

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

@anon238
Copy link
Author

anon238 commented Dec 16, 2022

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
Copy link
Contributor

It's not available in GAM.

@anon238
Copy link
Author

anon238 commented Dec 16, 2022

Damn!! Writing the script for nothing 🤣

@theanswerco
Copy link

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
Copy link
Contributor

taers232c commented Mar 27, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants