ERROR: Customer ID: C01234567, Invalid

451 views
Skip to first unread message

Brett Hitchcock

unread,
Aug 25, 2022, 10:55:58 AM8/25/22
to GAM for Google Workspace
I am using the latest version of GAMADV-XT3. I am trying to move specific devices to a new OU by uploading a csv with the deviceId. Here is my command

gam csv serial.csv gam update cros ~serial ou "/NewOU"

I am able to to single actions, like create a new user, change passwords, etc. Any clue?

Ross Scroggs

unread,
Aug 25, 2022, 11:02:23 AM8/25/22
to google-ap...@googlegroups.com
Brett,

C01234567 is certainly an invalid customerId, do the following:
gam config customer_id my_customer info domain
Get the correct CustomerID from the first line of output:
gam config customer_id <PasteHere> save

Back to your original issue; do you have the deviceId (looks like cc4371c9-bf90-4e2f-9364-de07e5ff109e) or the serial number?
If you actually have the serial number do:
gam csv serial.csv gam update cros_sn ~serial ou "/NewOU"

Ross

--
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 on the web visit https://groups.google.com/d/msgid/google-apps-manager/baf58ee6-9dd6-4ba8-abbf-0f4bf42e72fbn%40googlegroups.com.


--

Brett Hitchcock

unread,
Aug 25, 2022, 11:22:17 AM8/25/22
to GAM for Google Workspace
Ross,

Thank you. That resolved the customer ID issue.

I can prepare my csv with either the deviceId or the serial number. Serial number of course would be the quickest. Doing so and setting the header as "serial", I ran your code and got the following error returned:

ERROR: Invalid choice (crossn): Expected <adminrole|alias|browser|building|caalevel|chatmessage|chromepolicy|cigroup|contact|contactphoto|course|courses|cros|customer|device|deviceuser|deviceuserstate|domain|drivefileacl|feature|group|mobile|org|orgs|printer|project|resoldcustomer|resoldsubscription|resource|resources|sakey|schema|shareddrive|site|siteacl|svcacct|user|users|vaulthold|vaultmatter|verify>

Ross Scroggs

unread,
Aug 25, 2022, 11:26:50 AM8/25/22
to google-ap...@googlegroups.com
Brett,

You dropped the _ between cros and sn

gam csv serial.csv gam update cros_sn ~serial ou "/NewOU"

Ross


--

Ross Scroggs

unread,
Aug 25, 2022, 11:30:08 AM8/25/22
to google-ap...@googlegroups.com
Brett,

My mistake, you actually want:
gam csv serial.csv gam cros_sn ~serial update ou "/NewOU"

Ross
--

Brett Hitchcock

unread,
Aug 25, 2022, 11:37:12 AM8/25/22
to GAM for Google Workspace
That's the ticket! You're awesome. Thanks a ton.
Reply all
Reply to author
Forward
0 new messages