First Name: Test
Last Name: user
Organizations:
customType:
title: IT Support
primary: True
Phones:
type: work
value: 123-456-7890
gam user <User Email Address> print allfields
$ gam config csv_output_header_filter primaryEmail,name.givenName,name.familyName,organizations.0.title,phones.0.value redirect csv ./UserInfo.csv print users fields firstname,lastname,organizations,phones
Basic GAM
Linux/MacOS
$ export GAM_CSV_HEADER_FILTER="primaryEmail,name.givenName,name.familyName,organizations.0.title,phones.0.value"
Windows Command Prompt
$ set GAM_CSV_HEADER_FILTER=primaryEmail,name.givenName,name.familyName,organizations.0.title,phones.0.value"
Both
$ gam print users fields firstname,lastname,organizations,phones > UserInfo.csv
--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" 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/8409d4a8-0d8b-4a98-a38f-30baad491d2e%40googlegroups.com.
Deepan,If you are trying to do this for all users, here's what to do.Advanced GAM, all platforms$ gam config csv_output_header_filter primaryEmail,name.givenName,name.familyName,organizations.0.title,phones.0.value redirect csv ./UserInfo.csv print users fields firstname,lastname,organizations,phones
Basic GAM
Linux/MacOS
$ export GAM_CSV_HEADER_FILTER="primaryEmail,name.givenName,name.familyName,organizations.0.title,phones.0.value"
Windows Command Prompt
$ set GAM_CSV_HEADER_FILTER=primaryEmail,name.givenName,name.familyName,organizations.0.title,phones.0.value"
Both
$ gam print users fields firstname,lastname,organizations,phones > UserInfo.csv
Ross
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/8409d4a8-0d8b-4a98-a38f-30baad491d2e%40googlegroups.com.
--Ross Scroggs