Search for image filetypes by user and move them to separate folder?

40 views
Skip to first unread message

BCNCOM

unread,
Dec 3, 2025, 10:39:32 AM12/3/25
to GAM for Google Workspace
Got a bit of a forensic question for you all:

What we're looking to do is search for all images uploaded to Drive by a specific user, then move those files to a separate password-protected folder.

Is this possible via GAM scripting?

Ross Scroggs

unread,
Dec 3, 2025, 10:59:51 AM12/3/25
to google-ap...@googlegroups.com

Replace us...@domain.com with actual email address

Replace <ParentFolderID> with ID of destination folder


gam redirect csv ./ImagesVideos.csv user us...@domain.com print filelist showmimetype category image,video fields id,name,mimetype 


gam redirect stdout ./MoveImagesVideos.txt multiprocess redirect stderr stdout csv ImagesVideos.csv gam user "~Owner" update drivefile "~id" parentid <ParentFolderID>


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/16d4dead-625e-4511-97a9-b5020524a916n%40googlegroups.com.

Brian Cross

unread,
Dec 3, 2025, 11:59:14 AM12/3/25
to google-ap...@googlegroups.com
Excellent, thank you!

Brian Cross
Support Tech Level 2

bcr...@nutmegit.com

(860) 256-4822 x714

---------------------------------------------------------------------------------------------

On the Web: Nutmegit.com | Facebook | Linkedin

Featured Solutions:
LightSwitch Lighting the Way to Better Network Management
HMIS Consulting – Experienced HMIS Consulting and Professional Services



You received this message because you are subscribed to a topic in the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-manager/rYlPVA794Q8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-apps-man...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/google-apps-manager/4238AC70-14DE-41B7-8A62-AF260DD1FDBB%40gmail.com.

Brian Cross

unread,
Jan 13, 2026, 11:13:36 AM (8 days ago) Jan 13
to google-ap...@googlegroups.com
Hi Ross!

Hope your holidays went well! Just following up on this, as we're still working with our client; does this script retain the original folder structure?


Brian Cross
Support Tech Level 2

bcr...@nutmegit.com

(860) 256-4822 x714

---------------------------------------------------------------------------------------------

On the Web: Nutmegit.com | Facebook | Linkedin

Featured Solutions:
LightSwitch Lighting the Way to Better Network Management
HMIS Consulting – Experienced HMIS Consulting and Professional Services


On Wed, Dec 3, 2025 at 10:59 AM Ross Scroggs <ross.s...@gmail.com> wrote:
You received this message because you are subscribed to a topic in the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-manager/rYlPVA794Q8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-apps-man...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/google-apps-manager/4238AC70-14DE-41B7-8A62-AF260DD1FDBB%40gmail.com.
Reply all
Reply to author
Forward
0 new messages