Get MyDrive id with filelist

30 views
Skip to first unread message

Ashish Jain

unread,
Aug 6, 2024, 11:07:12 PM8/6/24
to GAM for Google Workspace
I have a csv file with the following columns which is the my drive id of the user

email,id

When fetching the files for the user, I need to add the drive id as a column value in filelist.

gam csv ./mycsv.csv user ~email print filelist fields id,name,~id

The id should be populated as is from the input csv. If not, can I also print the my drive id as a column?

Ross Scroggs

unread,
Aug 7, 2024, 9:59:38 AM8/7/24
to google-ap...@googlegroups.com
This requires Advanced GAM

gam csv ./mycsv.csv user ~email print filelist fields id,name addcsvdata driveId ~id

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/24ea73a7-93ce-41c8-a4fe-7313196a6da5n%40googlegroups.com.

Ashish Jain

unread,
Aug 7, 2024, 10:03:01 AM8/7/24
to google-ap...@googlegroups.com
Let me try. Is it possible to get the my drive driveid from the print filelist command?

---
Ashish


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/gF_vkCv2z7Y/unsubscribe.
To unsubscribe from this group and all its topics, 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/8CC9D2D6-9881-4256-A0EA-FF93A838EB26%40gmail.com.

Ross Scroggs

unread,
Aug 7, 2024, 10:11:15 AM8/7/24
to google-ap...@googlegroups.com
No, the API only supplies driveId for Shared Drives.

Ross
----
Ross Scroggs


Ashish Jain

unread,
Aug 7, 2024, 10:12:46 AM8/7/24
to google-ap...@googlegroups.com
Ok. Let me use the addcsv data. Thanks a lot 

---
Ashish


Reply all
Reply to author
Forward
0 new messages