Show only top level folders of a shared drive

916 views
Skip to first unread message

Steve Larsen

unread,
Dec 27, 2021, 11:34:51 AM12/27/21
to GAM for Google Workspace
I'm trying to get a list of only the top level folders of a shared drive. Looking at another command that works for the My Drive root location, I expected it to work but does not when using the shared drive id.

This works
gam user steve show filelist query "'root' in parents and mimeType='application/vnd.google-apps.folder' and trashed=false"

This does not
gam user steve show filelist query "1I5El3RMzgX9L0Rein9HVMGW99Jq1WE_r in parents and mimeType='application/vnd.google-apps.folder' and trashed=false"

Getting all Drive Files/Folders that match query ('me' in owners and (1I5El3RMzgX9L0Rein9HVMGW99Jq1WE_r in parents and mimeType='application/vnd.google-apps.folder')) for st...@domain.com
User: st...@domain.com, Drive File Show Failed: Query ('me' in owners and (1I5El3RMzgX9L0Rein9HVMGW99Jq1WE_r in parents and mimeType='application/vnd.google-apps.folder')) Invalid
Owner,name,webViewLink


Ross Scroggs

unread,
Dec 27, 2021, 11:44:51 AM12/27/21
to google-ap...@googlegroups.com
Steve,

gam user st...@domain.com print filelist select teamdriveid <TeamDriveId> showmimetype gfolder depth 0 fields id,name,mimetype excludetrashed


Ross

--
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/62dceff1-969c-4c2e-8c00-a3a2045607cdn%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages