Bulk transfer files to shared drive

312 views
Skip to first unread message

robby-215

unread,
Feb 3, 2023, 2:18:44 PM2/3/23
to GAM for Google Workspace
If I have a list of drive file ID's that have sensitive data in them, but we want to move all of them to a shared drive for further investigation, is there any way to do that with GAM?  The owners could be all over the place, and some may be in other shared drives

Maj Marshall Giguere

unread,
Feb 3, 2023, 3:40:35 PM2/3/23
to google-ap...@googlegroups.com
If you are using advanced GAM and all the fileID's are in a single CSV file you can move the files. Assume a file named "FileIDs.csv with the IDs has a single column named id, one row per file id.

gam csv ./FileIDs.csv gam user <someuser with permissions> move drivefile ~id teamdriveparent "<name of shared drive>"


Maj Marshall E Giguere

NH Wing Director of IT

Civil Air Patrol, U.S. Air Force Auxiliary

GoCivilAirPatrol.com

nhwg.cap.gov

Volunteers serving America's communities, saving lives, and shaping futures.



On Fri, Feb 3, 2023 at 12:18 PM 'robby-215' via GAM for Google Workspace <google-ap...@googlegroups.com> wrote:
If I have a list of drive file ID's that have sensitive data in them, but we want to move all of them to a shared drive for further investigation, is there any way to do that with GAM?  The owners could be all over the place, and some may be in other shared drives

--
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/e9bae804-a784-4a59-984c-6bb97e9a7e78n%40googlegroups.com.

Ross Scroggs

unread,
Feb 3, 2023, 4:30:02 PM2/3/23
to google-ap...@googlegroups.com
This solution will work in Standard and Advanced GAM

gam csv ./FileIDs.csv gam user ~Owner update drivefile id ~id parentid "<ID of Shared drive or Shared drive folder>"
The Owner column must be an owner/editor of the file.

There are permission issues, see: https://support.google.com/a/answer/7374057?hl=en

Ross





--

robby-215

unread,
Feb 3, 2023, 6:31:37 PM2/3/23
to GAM for Google Workspace
Worked like a champ, thanks both of you!
Reply all
Reply to author
Forward
0 new messages