Files migration from My Drive To Shared Drive

186 views
Skip to first unread message

Just Wild

unread,
Aug 15, 2025, 8:59:20 AM8/15/25
to GAM for Google Workspace

Hi all! I have an interesting task)

I have a user  whose MyDrive has a very tangled “spaghetti” folder structure — for example:

User (Owner) Folder  
   ↓  
   External User (Owner) Subfolder  
      ↓  
      Internal User (Owner) File

I need to migrate this entire structure from the user’s MyDrive to a Shared Drive.

My goal is to:

  • Move all files/folders owned by the target user to the Shared Drive, preserving the folder structure

  • For any files/folders not movable (e.g., owned by external users), create clones of these items owned by the target user, and place them in the corresponding locations in the structure

My question:
Is there a GAM command or workflow that allows:

  1. Moving everything owned by the target user to a Shared Drive

  2. Automatically cloning files that cannot be moved (due to ownership) into the same relative structure in the Shared Drive

If this is not possible as a single command, any suggestions for scripts or multi-step GAM processes to achieve this would be greatly appreciated.

Thanks in advance.

Ian Crew

unread,
Aug 15, 2025, 9:57:00 AM8/15/25
to google-ap...@googlegroups.com
As an alternative solution idea:

I personally have resolved exactly this sort of issue on my own MyDrive in the past couple of weeks with Folgo (https://Folgo.com). Folgo works remarkably well.

What it does is send the external user(s) requests that ask them for their authorization to let Folgo run a script as them to move their items into the shared drive, and then coordinates the move between all the various folder/file owners so that everything gets moved into the shared drive quite seamlessly. 

I’m not in any way affiliated with Folgo, just a satisfied customer. We’re in the process of readying it for roll-out on our campus. 

Cheers,

Ian
--
Ian Crew

Architect, Communication and Collaboration Services
Productivity & Collaboration Services
Berkeley IT
University of California, Berkeley


--
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/eb9e9b74-79a0-406e-9b66-29740010452an%40googlegroups.com.

David Van Aelst

unread,
Aug 15, 2025, 12:00:18 PM8/15/25
to google-ap...@googlegroups.com
I just got this working in GAMADV-XTD3

Shout out if you want me to share my code.



Op vr 15 aug 2025 om 15:56 schreef 'Ian Crew' via GAM for Google Workspace <google-ap...@googlegroups.com>:

This message contains information which may be confidential and privileged. If you are not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this message, or any attachment(s), is strictly prohibited. If you have received this message in error, please delete the message and any attachment(s).

Ross Scroggs

unread,
Aug 15, 2025, 12:10:35 PM8/15/25
to google-ap...@googlegroups.com
David,

GAMADV-XTD3 is no longer supported; you should update to GAM7 which is a rebranded version of GAMSDV-XTD3.

Ross



--

Just Wild

unread,
Aug 18, 2025, 10:49:33 AM8/18/25
to GAM for Google Workspace

Thanks a lot for suggesting folgo.com — I appreciate the option.
However, I’d really prefer to use a tool that I both trust and understand, so I’d like to stick with GAM. I’ve already upgraded to GAM7.

What I’d really like to clarify is: is it possible in GAM7 to perform a migration from MyDrive to Shared Drive with cloning for cases where the owner is an external user?

David, you mentioned you got this working in GAMADV-XTD3 and offered to share your code. Could you please share it? And do you know if your solution would also work with GAM7?

Thanks in advance!


пʼятниця, 15 серпня 2025 р. о 19:10:35 UTC+3 Ross Scroggs пише:

Maj. Marshall Giguere

unread,
Aug 18, 2025, 12:48:44 PM8/18/25
to google-ap...@googlegroups.com

Just Wild

unread,
Aug 20, 2025, 8:30:25 AM8/20/25
to GAM for Google Workspace
  Thanks a lot for the link! 
I’ll go through the information you shared and try to apply it in my case. Really appreciate the help!  

понеділок, 18 серпня 2025 р. о 19:48:44 UTC+3 Maj. Marshall Giguere пише:

David Van Aelst

unread,
Aug 20, 2025, 12:24:23 PM8/20/25
to google-ap...@googlegroups.com
Hi Just Wild,

Should you need some clarification or assistance, just let me know.

Kind regards,

Op wo 20 aug 2025 om 14:30 schreef Just Wild <justw...@gmail.com>:
Reply all
Reply to author
Forward
0 new messages