GAM-team / GAM

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

Mass updating user phone number and location with CSV #1694

Open Mingll0 opened 1 month ago

Mingll0 commented 1 month ago

I have tried putting: gam csv upsig.csv gam update user ~email phone type ~type value ~ext organization location ~room

And gam csv upsig.csv gam update user ~email phone type "~type" value "~ext" organization location "~room"

With the corresponding heading naming after the "~"

But it still comes back with Invalid argument. I tried with the similar syntax to mass create user with their first name , last name, password and there is no problem. I suspect I got the phone type and value incorrectly and also tried with primary phone type but still no go.

Any help is appreciated.

taers232c commented 1 month ago
::= ... (organization [type domain_only|school|unknown|work] [customtype ] [name ] [title ] [department ] [symbol ] [costcenter ] [location ] [description ] [domain ] [fulltimeequivalent ] notprimary|primary)| (phone [type assistant|callback|car|company_main|grand_central|home| home_fax|isdn|main|mobile|other|other_fax|pager|radio|telex|tty_tdd| work|work_fax|work_mobile|work_pager|(custom )] [value ] notprimary|primary)| You're missing the required keyword notprimary|primary > gam csv upsig.csv gam update user ~email phone type ~type value ~ext primary organization location ~room primary > > gam csv upsig.csv gam update user ~email phone type "~type" value "~ext" primary organization location "~room" primary > Ross ---- Ross Scroggs ***@***.*** > On Aug 7, 2024, at 2:02 AM, Mingll0 ***@***.***> wrote: > > > I have tried putting: > gam csv upsig.csv gam update user ~email phone type ~type value ~ext organization location ~room > > And > gam csv upsig.csv gam update user ~email phone type "~type" value "~ext" organization location "~room" > > With the corresponding heading naming after the "~" > > But it still comes back with Invalid argument. > I tried with the similar syntax to mass create user with their first name , last name, password and there is no problem. > I suspect I got the phone type and value incorrectly and also tried with primary phone type but still no go. > > Any help is appreciated. > > — > Reply to this email directly, view it on GitHub , or unsubscribe . > You are receiving this because you are subscribed to this thread. >
Mingll0 commented 1 month ago

Works like a charm! Thanks Ross!