Updating Contractor's Display Name in Gmail

233 views
Skip to first unread message

Dale Courtney

unread,
Mar 18, 2024, 7:16:03 PM3/18/24
to GAM for G Suite
I'm running the following: 

GAMADV-XTD3 6.71.17
Python 3.12.2 64-bit final
MacOS Sonoma 14.4 arm64


We want to change the display name of all contractors:
  • Current Display Name: Jane Doe
  • New Display Name: Jane Doe (Contractor)
I have a CSV with contractor usernames and desired full_name. 

When I run the following: 

gam csv contractors_update.csv gam update user "~username" fullname "~full_name"

I get this warning: 


>>>fullname<<<

ERROR: Invalid argument


best,

Dale Courtney
Senior IT Manager, Lightcast

232 N. Almon St. | Moscow, ID | 83843

Maj Marshall Giguere

unread,
Mar 18, 2024, 7:32:20 PM3/18/24
to google-ap...@googlegroups.com
Dale;

IIRC "fullname" is a computed field made up of "givenname" + "familyname", so I don't believe it can be updated. You can, however, update the two components.

--
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/CAG56vfOqcUtP7WG69YUKjDHXOA4t3kqdcUFdn%3DL7DfxhT6%2BKqA%40mail.gmail.com.

Ross Scroggs

unread,
Mar 18, 2024, 7:32:57 PM3/18/24
to google-ap...@googlegroups.com
Dale,

fullname is a Google constructed field, it can't be set via an API.

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/CAG56vfOqcUtP7WG69YUKjDHXOA4t3kqdcUFdn%3DL7DfxhT6%2BKqA%40mail.gmail.com.


--

Maj Marshall Giguere

unread,
Mar 18, 2024, 7:41:32 PM3/18/24
to google-ap...@googlegroups.com
PS

You can also change the display name 
>gam update user us...@example.com displayName "Jane Doe (Contractor)"

I think Google will just use "fullname" if displayName isn't set.

Dale Courtney

unread,
Mar 18, 2024, 8:01:56 PM3/18/24
to google-ap...@googlegroups.com
Hey, Major! Using displayName worked perfectly. 

Thanks for your help. 

best,
Dale Courtney, LCDR USN (Ret.)


Reply all
Reply to author
Forward
0 new messages