Google sheet and GAM for shared domain contacts

113 views
Skip to first unread message

Rick Applegate

unread,
Aug 8, 2024, 4:58:03 PM8/8/24
to GAM for Google Workspace
I am new to GAM and also to domain shared contacts, so bear with me.  If there are easier ways to accomplish what I am describing, please let me know.

My ultimate goal is to utilize a google sheet to manage our domain shared contacts.  From my little bit of research into GAM, I think it would be easiest with four sheets (existing contacts, new contacts, contacts to update, and contacts to delete).  I created a sheet to add new contacts and I can successfully add new contacts from the sheet.  My next step was to read the existing contacts and put them in an existing sheet (I will manually delete the contents of the sheet before running this command).  I am having issues with the syntax to make this happen however.    I have tried several variations of the following command:

gam redirect csv todrive tdfileid 1X4tMxxxxxxxxxxxxxxoqRfNVs tdretaintitle true tdsheet "testing_existing" tdupdatesheet true print contact fields id prefix firstname lastname suffix

but I keep getting "ERROR: Invalid choice (tdfileid): Expected <all|cigroup|..."

I am basing my command from https://github.com/taers232c/GAMADV-XTD3/wiki/Todrive#redirect-csv in the examples section.  

Any help would be appreciated.
Thanks,
Rick

Ross Scroggs

unread,
Aug 8, 2024, 5:00:17 PM8/8/24
to google-ap...@googlegroups.com
You're missing a - after redirect csv
gam redirect csv - todrive tdfileid 1X4tMxxxxxxxxxxxxxxoqRfNVs tdretaintitle true tdsheet "testing_existing" tdupdatesheet true print contact fields id prefix firstname lastname suffix

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/9908a1e4-d82b-4c44-a735-6195b3cf177bn%40googlegroups.com.

Rick Applegate

unread,
Aug 8, 2024, 5:13:58 PM8/8/24
to GAM for Google Workspace
Thank you.  I feel dumb for missing that.  I am sure I will run into more questions as I keep moving forward.

Charles Queiroz

unread,
Aug 7, 2025, 9:09:34 PM8/7/25
to GAM for Google Workspace
Rick,


Can you share the template of the spreadsheet.

I need to do the same task, but I have issues to delete the shared contacts.

Thanks
Charles

Rick Applegate

unread,
Aug 8, 2025, 5:06:08 PM8/8/25
to google-ap...@googlegroups.com
Charles,
Sorry, I don't think I have anything that will be of assistance to you.  I abandoned this project shortly after posting those questions because of changes to our business ERP system.  I did not make it far enough to try deleting contacts from the spreadsheet.  

Rick

You received this message because you are subscribed to a topic in the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-manager/nJlst63GCRc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-apps-man...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/google-apps-manager/25d445bf-52ac-4597-9d31-88628f458aa7n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages