Searching for content with "Anyone with a link" within Share Drives

75 views
Skip to first unread message

Rob Burnett

unread,
Dec 9, 2024, 4:22:31 PM12/9/24
to GAM for Google Workspace
As part of a security effort, we need a report of every file or folder in a Share Drive that is shared with "Anyone with a link".  Is there an easier way to do this without having to crawl every share drive in minutia and then filter in a spreadsheet?  As output, we need to know the associated Share Drive along with the file and/or folder.

Thanks,

Rob

Ross Scroggs

unread,
Dec 9, 2024, 4:43:18 PM12/9/24
to google-ap...@googlegroups.com

There's no shortcut.

Make a CSV file SharedDrives.csv with at least two columns: id,manager

These are the Shared Drive ID and the email address of a manager of the drive.


gam config num_threads 10 redirect csv ./AnyoneWithLinkSharedDriveFiles.csv multiprocess redirect stderr - multiprocess csv SharedDrives.csv gam user "~manager" print filelist select teamdriveid "~id" query "visibility='anyoneWithLink'" fields id,name,driveid,mimetype,basicpermissions pm type anyone withlink true em pmfilter oneitemperrow


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 visit https://groups.google.com/d/msgid/google-apps-manager/46ab48c3-c98b-4e73-b855-e6f5bd69b9aan%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages