List all files on a Team Drive

2,179 views
Skip to first unread message

Global Admin

unread,
Apr 27, 2017, 12:09:43 PM4/27/17
to GAM for G Suite
Afternoon All

Team Drives

Can we list files/folders,create,delete files/folders on team drives in the same way its possible for user drive files/folders.


Thanks in Advance


Richard

Ross Scroggs

unread,
Apr 27, 2017, 1:17:11 PM4/27/17
to google-ap...@googlegroups.com
Richard,

I'm in the process of updating my advanced Gam to have full Team Drirve support, I'm working on the documentation now and should release it next week.

--
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 post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/1b09124d-4335-415f-b09d-52b638ba5654%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Global Admin

unread,
Apr 28, 2017, 4:50:50 AM4/28/17
to GAM for G Suite
Ross

Fantastic,,

Big thank you to Ross and Jay for all the work you,,,Saves me days of work...

Richard

On Thursday, 27 April 2017 18:17:11 UTC+1, Ross Scroggs wrote:
Richard,

I'm in the process of updating my advanced Gam to have full Team Drirve support, I'm working on the documentation now and should release it next week.

On Apr 27, 2017, at 9:09 AM, Global Admin <globa...@orleanspark.school> wrote:

Afternoon All

Team Drives

Can we list files/folders,create,delete files/folders on team drives in the same way its possible for user drive files/folders.


Thanks in Advance


Richard

--
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-manager+unsub...@googlegroups.com.

Dennis Mattei

unread,
Jul 6, 2017, 1:25:40 PM7/6/17
to GAM for G Suite
Hey Ross,

I cant seem to find much documentation for the team drive support.  Im looking to list files inside a team drive, Im guessing its easy and im just missing it! Can you point me in the right direction?

-Dennis

This message contains information which may be confidential and/or protected by attorney-client privilege.  Unless you are the addressee, you may not use, copy or disclose to anyone this message or any information contained in this message.  If you have received this message in error, please send me an email and delete this message.   Thank you.

Ross Scroggs

unread,
Jul 6, 2017, 1:32:14 PM7/6/17
to google-ap...@googlegroups.com
Dennis,

See: https://github.com/taers232c/GAMADV-XTD/wiki/GAM-Updates Skip down and read 4.50.00 carefully.

This uses the same client_secrets.json, oauth2.txt and oauth2service.json as GAMADV-X so you can install it in parallel and test.

Ross

On Thu, Jul 6, 2017 at 10:24 AM, Dennis Mattei <dennis...@cellsignal.com> wrote:
Hey Ross,

I cant seem to find much documentation for the team drive support.  Im looking to list files inside a team drive, Im guessing its easy and im just missing it! Can you point me in the right direction?

-Dennis


On Friday, April 28, 2017 at 4:50:50 AM UTC-4, Global Admin wrote:
Ross

Fantastic,,

Big thank you to Ross and Jay for all the work you,,,Saves me days of work...

Richard

On Thursday, 27 April 2017 18:17:11 UTC+1, Ross Scroggs wrote:
Richard,

I'm in the process of updating my advanced Gam to have full Team Drirve support, I'm working on the documentation now and should release it next week.

On Apr 27, 2017, at 9:09 AM, Global Admin <globa...@orleanspark.school> wrote:

Afternoon All

Team Drives

Can we list files/folders,create,delete files/folders on team drives in the same way its possible for user drive files/folders.


Thanks in Advance


Richard

--
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-manager+unsubscribe...@googlegroups.com.

This message contains information which may be confidential and/or protected by attorney-client privilege.  Unless you are the addressee, you may not use, copy or disclose to anyone this message or any information contained in this message.  If you have received this message in error, please send me an email and delete this message.   Thank you.

--
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-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--

Sim

unread,
Jan 17, 2018, 7:44:25 AM1/17/18
to GAM for G Suite
I know this is an older thread but in case anyone was wondering about how to access team drive files here's the answer:

2) This is the python code to do it:

#------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
DRIVE = discovery.build('drive', 'v3', http=http)

response = DRIVE.files().list(supportsTeamDrives=True,includeTeamDriveItems=True,fields="nextPageToken, files(id, name),kind").execute()
#-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Ravi

unread,
Nov 11, 2018, 6:36:16 PM11/11/18
to GAM for G Suite
Thank you very much, Sim.
This is very useful.

Ross Scroggs

unread,
Nov 11, 2018, 8:12:36 PM11/11/18
to google-ap...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages