top of page
Writer's pictureJoe Tierney

How to Change Google Drive File or Folder Parent with GAM

Struggling to keep your Google Drive organized? As a Google Workspace administrator, managing file ownership and organization is crucial. This guide will show you how to efficiently move files and folders to new parent folders using Google Apps Manager (GAM) - a powerful tool at your disposal.


change parent folder google drive files
Google Drive file management fun :)

Effortlessly Move Files with GAM


GAM allows you to automate repetitive tasks, saving you precious time and minimizing errors. This guide focuses on a specific but valuable GAM function: changing the parent folder of multiple Google Drive files or folders.



Step-by-Step Script for Moving Files


Ready to streamline your file management? Here's a GAM script that will do the heavy lifting:



Understanding the Script Variables:


  • NEW_PARENT_ID: Replace your_new_parent_id_here with the ID of the destination folder where you want the files to reside. You can find folder IDs using GAM or the Google Drive interface.


  • file_ids:  This is a comma-separated list containing the IDs of the files you want to move. Use GAM commands or the Drive interface to identify these IDs.


  • your_admin_email:  Replace this with your Google Workspace admin email address. Ensure this account has the necessary GAM permissions to execute the script.


Benefits of Using This Script


  • Boost Efficiency: Move multiple files simultaneously, saving valuable time compared to manual dragging and dropping.


  • Minimize Errors: Automating the process reduces the risk of mistakes that can occur with manual file organization.


Stay Organized with GAM





With this GAM script in your arsenal, you can effortlessly manage file organization within your Google Workspace domain. Ensure your files are always in their rightful place, promoting better collaboration and information accessibility for your team.

Comments

Rated 0 out of 5 stars.
No ratings yet

Add a rating

Get in touch

Keep up to date

Never miss an update

Thanks for submitting!

bottom of page