Finding where a file is located

172 views
Skip to first unread message

Charlie Patton

unread,
Sep 6, 2023, 6:07:18 PM9/6/23
to GAM for Google Workspace
A user recently left the company, and while we transferred all of the files in their Google Drive to a new person, this person was working on a number files in one or more Shared Drives. I was able to get a list of relevant files with the command below:

gamadv user <userEmail> print filelist fullquery "sharedWithMe=True and name contains '<Topic>'" showownedby others


Given this information, how can I determine which personal or Shared Drive each of these files lives on?

Ross Scroggs

unread,
Sep 6, 2023, 6:52:25 PM9/6/23
to google-ap...@googlegroups.com
Charlie,

The command you showed does not show files on Shared Drives, it shows you files on other user's My Drives that were shared to the departed user.

Is this what you meant by Shared Drives?

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 on the web visit https://groups.google.com/d/msgid/google-apps-manager/2501247f-818f-43e3-9ae8-9b119e1e7be9n%40googlegroups.com.

Charlie Patton

unread,
Sep 7, 2023, 11:24:36 AM9/7/23
to GAM for Google Workspace
Ah, I didn't realize it only included files in individual drives. The files from this command are definitely a piece of the puzzle, but apparently there are files that are on some shared drive of which the departed user was not a member; rather, they had the files shared with them directly (bad practice imho but here we are). There are files for which the owner is the organization and appear under "shared with me;" I'm assuming these files are on a shared drive, but I can't see which one.So ideally I would pull a list with gamadv of all such files, and also determine which shared drive they live on. I hope that makes sense.

Ross Scroggs

unread,
Sep 7, 2023, 12:56:35 PM9/7/23
to google-ap...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages