Print filecounts for multiple MyDrive folders

49 views
Skip to first unread message

BR

unread,
Jul 12, 2023, 11:03:28 AM7/12/23
to GAM for Google Workspace
Hi.  I know I can use gam user per...@company.com print filelist countsonly select "Folder ID"  but am wondering what the command is to target multiple folder IDs simultaneously.  Please advise if this can be done.  Thanks!

Ross Scroggs

unread,
Jul 12, 2023, 11:06:56 AM7/12/23
to google-ap...@googlegroups.com
Make a CSV file FolderIDs.csv
folderid
dhjsjdhjsjds
jdksjdksjks
jkdsjdsk



gam redirect csv ./FolderCounts.csv multiprocess csv FolderIDs.csv gam per...@company.com print filelist countsonly select "~folderid"

Ross

On Wed, Jul 12, 2023 at 8:03 AM BR <bruss...@gmail.com> wrote:
Hi.  I know I can use gam user per...@company.com print filelist countsonly select "Folder ID"  but am wondering what the command is to target multiple folder IDs simultaneously.  Please advise if this can be done.  Thanks!

--
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/7f291095-02e0-4fb2-902b-c83c44e81c33n%40googlegroups.com.


--

BR

unread,
Jul 12, 2023, 11:24:24 AM7/12/23
to GAM for Google Workspace
Thank you, Ross (as usual!).  One more question.  Is there a way to have GAM output the folder IDs on each line when it writes the counts to the csv?  Reason I'm asking is because I intend to use this to get counts on several hundred directories in a user's MyDrive simultaneously.  I checked the output file and it gives the counts, but does not write the folder IDs.

Or, can I assume that the order in which I input the folder IDs in folderids.csv will match up with the line item output in foldercounts.csv?

Your help as always is very much appreciated.

Ross Scroggs

unread,
Jul 12, 2023, 11:30:34 AM7/12/23
to google-ap...@googlegroups.com
Add showsource to the command

gam redirect csv ./FolderCounts.csv multiprocess csv FolderIDs.csv gam per...@company.com print filelist countsonly select "~folderid" showsource

Ross



--

BR

unread,
Jul 12, 2023, 12:21:28 PM7/12/23
to GAM for Google Workspace
Thank you, Ross.
Reply all
Reply to author
Forward
0 new messages