GAM Cost Center Argument stopped working

43 views
Skip to first unread message

Michael Roche

unread,
Nov 26, 2024, 5:05:49 PM11/26/24
to GAM for Google Workspace
I have created users using a string of commands like the following below, and today the cost center argument keeps coming back invalid argument.

gam create user jdoe@....com firstname Jon lastname "Doe(DeviceRepair)" password Battery1Doe changepassword on gal off org /Stores/Associates/DeviceRepairAccounts cost center "250"

I have tried using costcenter instead of cost center and still showing invalid.

Ross Scroggs

unread,
Nov 26, 2024, 5:07:44 PM11/26/24
to google-ap...@googlegroups.com
See: https://github.com/taers232c/GAMADV-XTD3/wiki/Users#admin-console-user-info

gam create user jdoe@....com firstname Jon lastname "Doe(DeviceRepair)" password Battery1Doe changepassword on gal off org /Stores/Associates/DeviceRepairAccounts organization costcenter "250" primary

Ross
----
Ross Scroggs



--
You received this message because you are subscribed to the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/google-apps-manager/e9aa37ba-3734-4d90-9e05-4186bf1105dcn%40googlegroups.com.

Michael Roche

unread,
Nov 27, 2024, 1:20:14 PM11/27/24
to GAM for Google Workspace
I ran the command again that you mentioned above and still got the error "invalid argument" for ....costcenter "250" primary. I had a coworker try the command you suggested and it failed too. I am on GAM version 7.00.39 and he currently has 6.58.

Ross Scroggs

unread,
Nov 27, 2024, 1:45:24 PM11/27/24
to google-ap...@googlegroups.com
Send me a Meet/Zoom invitation and we'll figure out what's going on.

Ross
----
Ross Scroggs


Ross Scroggs

unread,
Nov 27, 2024, 2:24:37 PM11/27/24
to google-ap...@googlegroups.com
Show the command and the error message.

Ross
----
Ross Scroggs


Michael Roche

unread,
Nov 27, 2024, 2:57:16 PM11/27/24
to GAM for Google Workspace



PS C:\windows\system32> gam create user jdoe2@......com firstname Jon lastname "Doe2(DeviceRepair)" password 3Z*Om&17k& changepassword on gal off org /Stores/Associates/DeviceRepairAccounts costcenter "231" primary


gam : Command: C:\GAMADV-XTD3\gam.exe create user jdoe2@......com firstname Jon lastname Doe2(DeviceRepair) password 3Z*Om&17k&**od changepassword on gal off org 

/Stores/Associates/DeviceRepairAccounts >>>costcenter<<< 231 primary

At line:1 char:1

+ gam create user jdoe2@.....com firstname Jon lastname "Doe2( ...

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : NotSpecified: (Command: C:\GAM...<<< 231 primary:String) [], RemoteException

    + FullyQualifiedErrorId : NativeCommandError

 

ERROR: Invalid argument

Ross Scroggs

unread,
Nov 27, 2024, 3:02:59 PM11/27/24
to google-ap...@googlegroups.com
You left out the word organization
gam create user jdoe2@......com firstname Jon lastname "Doe2(DeviceRepair)" password 3Z*Om&17k& changepassword on gal off org /Stores/Associates/DeviceRepairAccounts costcenter "231" primary
gam create user jdoe2@......com firstname Jon lastname "Doe2(DeviceRepair)" password 3Z*Om&17k& changepassword on gal off org /Stores/Associates/DeviceRepairAccounts organization costcenter "231" primary

Ross
----
Ross Scroggs


Michael Roche

unread,
Nov 27, 2024, 3:09:34 PM11/27/24
to google-ap...@googlegroups.com
Thank you for the assistance! I assumed it was user error on my end and missing an argument. That worked, appreciate it.



--


Blog Franchising

Michael Roche
IT Help Desk Representative I

Digital End User Services

mro...@batteriesplus.com

P 262.912.2410

1325 Walnut Ridge Dr.
Hartland, WI 53029
batteriesplus.com

Reply all
Reply to author
Forward
0 new messages