Listing shared drive links to externally owned resources

12 views
Skip to first unread message

Matthew Carroll

unread,
Sep 3, 2025, 1:43:53 PM (2 days ago) Sep 3
to GAM for Google Workspace
Within shared drives, I'm wondering if there is a way to search for links where people have linked out to externally owned folders/files?

I'm running into an issue where I (as the admin) can't see some of those external folders without requesting access, and there's no way to determine who the actual owner is, or even who created the link, without first requesting access, so I have no way to determine what content that is within those outbound links from our shared drive should have actually been stored within our shared drive.

Is there a way to determine if the target of a link in a shared drive is external to our organization, and if so, who in our organization has permissions to see it? I don't see any obvious differences between links where the target is internal, and ones where the target is external, other than in the drive gui it shows up as greyed out. Ideally I'd like to produce a report that shows the location (within our shared drive), any information that's possible to glean about the external location, and who created the link / has access on our team.

This is related to, but a bit different, to this previous discussion about listing files on individual drives where the ownership is external...

https://groups.google.com/g/google-apps-manager/c/Mb582f-gmyo/m/xZO34KW7AwAJ

Thanks for any pointers,
Matthew

Ross Scroggs

unread,
Sep 3, 2025, 3:20:48 PM (2 days ago) Sep 3
to google-ap...@googlegroups.com
Matthew,

Try this replacing domain.com with your actual domain and sdorganizer with an actual organizer.

gam redirect csv ./SharedDriveExternalShares.csv user sdorg...@domain.com print filelist select teamdriveid <SharedDriveID> fields id,driveid,name,mimetype,basicpermissions showdrivename pm not domain domain.com em oneitemperrow

For all files with an external share, you will get all of the ACLs. TO only see the external ACLs, add this to the command: pmfilter

Send me a private Meet/Zoom invitarion.

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/c49c60d4-7572-4503-85b7-d57ab4e3e1e1n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages