Delete addresses.0.postalCode attribute

97 views
Skip to first unread message

Cuenta de Servicio Google Migraciones

unread,
Oct 3, 2024, 4:41:16 PM10/3/24
to GAM for Google Workspace
Hello guys. I've been trying to download an attribute for several users. The attribute is the under User information>Contact Information>Address (Work)


I printed all user details and the data I need to remove is located inside "addresses.0.postalCode" but no matter what update command I use to remove it does not work.

Please help me out


AVISO LEGAL: Al recibir este mensaje, deberá tener en cuenta las condiciones definidas en: https://www.iqoutsourcing.com/wp-content/uploads/AvisoLegal.pdf

Ross Scroggs

unread,
Oct 3, 2024, 4:43:46 PM10/3/24
to google-ap...@googlegroups.com
You can't just delete the postal code, you have to re-enter the address with the all of the fields you want.

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 on the web visit https://groups.google.com/d/msgid/google-apps-manager/d5e9bfd5-9e53-4ccf-8031-70bbdbfdd40cn%40googlegroups.com.

Cuenta de Servicio Google Migraciones

unread,
Oct 3, 2024, 5:09:31 PM10/3/24
to GAM for Google Workspace
Thanks for the heads up Ross. Are you referring to the fields:


addresses.0.formatted

addresses.0.locality

addresses.0.poBox

addresses.0.postalCode

Or what other fields would you suggest me to have a look.

Regards!

Ross Scroggs

unread,
Oct 3, 2024, 5:12:35 PM10/3/24
to google-ap...@googlegroups.com
address type home|other|work|(custom <String>)
                [unstructured|formatted <String>]
                [pobox <String>] [extendedaddress <String>] [streetaddress <String>]
                [locality <String>] [region <String>] [postalcode <String>]
                [country <String>] [countrycode <String>]
                notprimary|primary

Typically you use formatted and put the entire address in <String>
or you specify the individual fields

Ross
----
Ross Scroggs


Cuenta de Servicio Google Migraciones

unread,
Oct 10, 2024, 1:15:46 PM10/10/24
to GAM for Google Workspace
Hey Ross, thanks for the info.

I tried a few combinations but neither of them work:

gam update user user...@domain.com addresses.0.postalCode
gam update user  user...@domain.com   address type work unstructured "0000"
gam update user  user...@domain.com   address type work unstructured "Address"
gam update user  user...@domain.com   address type work "0000"


I get either:

GAM 6.58 - https://jaylee.us/gam - pyinstaller
Jay Lee <jay...@gmail.com>
Python 3.11.3 64-bit final
google-api-python-client 2.86.0
Windows 10 10.0.20348 SP0 Multiprocessor Free AMD64
Path: C:\GAM\IQ

Usage: gam [OPTIONS]...

GAM. Retrieve or set Google Workspace domain,
user, group and alias settings. Exhaustive list of commands
can be found at: https://github.com/jay0lee/GAM/wiki

Examples:
gam info domain
gam create user jsmith firstname John lastname Smith password secretpass
gam update user jsmith suspended on
gam.exe update group announcements add member jsmith
...

Or:

ERROR: invalid argument (0000) for account address details

To put some context, we did an AD Sync from Microsoft to Google and the PostalCode fiel was used to add PIII details (Social security numbers) now that the customer migrated to Google, those details show on the contact section and also under the Work addres field on the Admin Console

Ross Scroggs

unread,
Oct 10, 2024, 1:20:25 PM10/10/24
to google-ap...@googlegroups.com
am update user  user...@domain.com   address type work unstructured "Address" primary

Ross
----
Ross Scroggs


Cuenta de Servicio Google Migraciones

unread,
Oct 11, 2024, 3:41:10 AM10/11/24
to GAM for Google Workspace
Thanks Ross , It worked and then I deleted them using a bulk action via CSV:

gam csv SystemSchema.csv gam update user ~email address type work unstructured ~address

Regards!
Reply all
Reply to author
Forward
0 new messages