Moving Folder from Google Drive to Team Drive

3,525 views
Skip to first unread message

Rob.

unread,
Jan 4, 2018, 1:48:04 PM1/4/18
to GAM for G Suite
I have some very large files that need to be moved from a Google Drive to a Team Drive.   

Is there a way to manage that in GAMADV-XTD?   

I was looking at the instructions and didn't see any transfer commands.

Ross Scroggs

unread,
Jan 4, 2018, 2:47:21 PM1/4/18
to google-ap...@googlegroups.com
Rob,

You're not really transferring the file, you're changing the parents.

Get the current parent id.

$ gam user testuser1 show fileinfo drivefilename "MoveMeToTD" id parents

Getting all Drive Files/Folders that match query ('me' in owners and name = 'MoveMeToTD') for test...@rdschool.org

Got 1 Drive File/Folder for test...@rdschool.org...

User: test...@rdschool.org, Show 1 Drive File/Folder

  Drive File: MoveMeToTD (1MQzFhseYLDic0YQ0sANsLB7K0tdMqyWOBT3pcVt-nWw)

    id: 1MQzFhseYLDic0YQ0sANsLB7K0tdMqyWOBT3pcVt-nWw

    parents:

      id: 0B6jnewfiM5G8VlBqNDlsSmdDU2c

    title: MoveMeToTD


Get the new parent id; a folder named "Top Folder" on the Team Drive named "TD Test".

$ gam user testuser1 show fileinfo teamdrive "TD Test" teamdrivefilename "Top Folder" id 

Getting all Drive Files/Folders that match query (name = 'Top Folder') for test...@rdschool.org

Got 1 Drive File/Folder for test...@rdschool.org...

User: test...@rdschool.org, Show 1 Drive File/Folder

  Drive Folder: Top Folder (0B6jnewfiM5G8T05NVXhUSFQ5Rms)

    id: 0B6jnewfiM5G8T05NVXhUSFQ5Rms

    title: Top Folder


Change the parents.

$ gam user testuser1 update drivefile drivefilename "MoveMeToTD" removeparents 0B6jnewfiM5G8VlBqNDlsSmdDU2c addparents 0B6jnewfiM5G8T05NVXhUSFQ5Rms

Getting all Drive Files/Folders that match query ('me' in owners and name = 'MoveMeToTD') for test...@rdschool.org

Got 1 Drive File/Folder for test...@rdschool.org...

User: test...@rdschool.org, Update 1 Drive File/Folder

  User: test...@rdschool.org, Drive File: MoveMeToTD, Updated


Verify.

$ gam user testuser1 show fileinfo teamdrivefilename "MoveMeToTD" id parents filepath

Getting all Drive Files/Folders that match query (name = 'MoveMeToTD') for test...@rdschool.org

Got 1 Drive File/Folder for test...@rdschool.org...

User: test...@rdschool.org, Show 1 Drive File/Folder

  Drive File: MoveMeToTD (1MQzFhseYLDic0YQ0sANsLB7K0tdMqyWOBT3pcVt-nWw)

    paths: 1

      path: TD Test/Top Folder/MoveMeToTD

    id: 1MQzFhseYLDic0YQ0sANsLB7K0tdMqyWOBT3pcVt-nWw

    parents:

      id: 0B6jnewfiM5G8T05NVXhUSFQ5Rms

    title: MoveMeToTD



I'll look into making this an atomic operation.

Ross

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/f54b4d95-88ad-42e9-b278-99d0995aa328%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Rob.

unread,
Jan 4, 2018, 3:16:54 PM1/4/18
to GAM for G Suite
Thanks Ross. I never thought of it that way.  I'll try that today.
To post to this group, send email to google-ap...@googlegroups.com.



--

Rob.

unread,
Jan 4, 2018, 4:07:57 PM1/4/18
to GAM for G Suite
The process worked great for a text file I had but I cannot apply the same process to a folder.

I'm doing this is a use that is super user level access.  I am able to use the web browser to move the folder from Google Drive to Team Drive.   The gam command give me the "

Update Failed: Moving Folders into Team Drives is not supported." error. 


I'm going to assume the command will not automatically update the child files and folders.  Beyond that I can't see why the command would fail. 

Ross Scroggs

unread,
Jan 4, 2018, 4:51:01 PM1/4/18
to google-ap...@googlegroups.com
Rob,

This error message comes from the API, so to automate this you'd have to make the target team drive folder, and then update the members.
How many files are you talking about?

Ross

To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsubscribe...@googlegroups.com.



--

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--

+KimNilsson

unread,
Jan 5, 2018, 3:09:00 AM1/5/18
to GAM for G Suite
Moving a folder from Drive to Team Drive works in the web-interface, but only if the superadmin is a member of the Team Drive.
Is it a limitation of the API, Ross, or just a syntax error?

+KimNilsson

unread,
Jan 5, 2018, 3:11:10 AM1/5/18
to GAM for G Suite
What I'm saying, Rob, is that you may have to start with making the superadmin a member of the target Team Drive. Worth a shot.
As Ross said, it may still be a limitation of the API, whish is sad if you have a folder structure you want to move.
Still, if it's only one folder, you can easily do it manually.

Rob.

unread,
Jan 5, 2018, 11:17:05 AM1/5/18
to GAM for G Suite
Thanks for all the help.

Ross,
I created a team drive in my account, tried your gam transfer solution and that is how I got the "unable to move folder error".
The folders I'm trying to move have anywhere from  200 to 200,000 sub files and folders.    I made sure that nothing is over the 250,000 limit team drive has.
Even trying to move a file with a small amount of subfolder and files I got the error.


Kim,
Like I said above I tried the test in my own team drive and google drive and got the error.

I have single folders that have lots of subfiles and folders.  I definitely need the file tree to stay in tact.  I moved some of the folders through the GUI and it is taking a very long time to migrate the files.  I wanted to use the gam so there was going to be more control in the transfer progress.    I don't like how google doesn't provide an easy way to monitor the transfer.

+KimNilsson

unread,
Jan 8, 2018, 4:04:35 AM1/8/18
to GAM for G Suite
Yeah, zero progress monitoring.

Rob.

unread,
Jan 8, 2018, 3:09:35 PM1/8/18
to GAM for G Suite
Thanks. I guess I'll just have to monitor the transfers from the G Suite admin reporting.

On Monday, January 8, 2018 at 4:04:35 AM UTC-5, +KimNilsson wrote:
Yeah, zero progress monitoring.

Ross Scroggs

unread,
Jan 8, 2018, 3:13:44 PM1/8/18
to google-ap...@googlegroups.com
Rob,

I'm working on this:

# gam <UserTypeEntity> move drivefile <DriveFileEntity> [newfilename <DriveFileName>] [recursive [depth <Number>]]                                                                                                                                             

#       [parentid <DriveFolderID>] [parentname <DriveFolderName>]                                                                                                                                                                                              

#       [teamdriveparentid <DriveFolderID>] [teamdriveparent <TeamDriveName>] [teamdriveparentname <DriveFolderName>]                                                                                                                                          


Ross

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.

For more options, visit https://groups.google.com/d/optout.



--

Chuck W. Williams

unread,
Jan 9, 2018, 11:07:14 AM1/9/18
to GAM for G Suite
Hi Team,

I have a similar request..checking if I can transfer a folder from My Drive to a Team Drive using Ross's GAMADV-XTD version.  The source folder has a lot of items and folders that need to be moved to a Team Drive..

Regards


On Monday, January 8, 2018 at 3:13:44 PM UTC-5, Ross Scroggs wrote:
Rob,

I'm working on this:

# gam <UserTypeEntity> move drivefile <DriveFileEntity> [newfilename <DriveFileName>] [recursive [depth <Number>]]                                                                                                                                             

#       [parentid <DriveFolderID>] [parentname <DriveFolderName>]                                                                                                                                                                                              

#       [teamdriveparentid <DriveFolderID>] [teamdriveparent <TeamDriveName>] [teamdriveparentname <DriveFolderName>]                                                                                                                                          


Ross
On Mon, Jan 8, 2018 at 12:09 PM, Rob. <rlea...@gmail.com> wrote:
Thanks. I guess I'll just have to monitor the transfers from the G Suite admin reporting.

On Monday, January 8, 2018 at 4:04:35 AM UTC-5, +KimNilsson wrote:
Yeah, zero progress monitoring.

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.



--

Ross Scroggs

unread,
Jan 9, 2018, 11:44:07 AM1/9/18
to google-ap...@googlegroups.com
Rob/Chuck,

I'm working on it, I'll post an announce when I've got it.

Ross

On Tue, Jan 9, 2018 at 8:07 AM, Chuck W. Williams <chuck.wi...@nielsen.com> wrote:
Hi Team,

I have a similar request..checking if I can transfer a folder from My Drive to a Team Drive using Ross's GAMADV-XTD version.  The source folder has a lot of items and folders that need to be moved to a Team Drive..

Regards

On Monday, January 8, 2018 at 3:13:44 PM UTC-5, Ross Scroggs wrote:
Rob,

I'm working on this:

# gam <UserTypeEntity> move drivefile <DriveFileEntity> [newfilename <DriveFileName>] [recursive [depth <Number>]]                                                                                                                                             

#       [parentid <DriveFolderID>] [parentname <DriveFolderName>]                                                                                                                                                                                              

#       [teamdriveparentid <DriveFolderID>] [teamdriveparent <TeamDriveName>] [teamdriveparentname <DriveFolderName>]                                                                                                                                          


Ross
On Mon, Jan 8, 2018 at 12:09 PM, Rob. <rlea...@gmail.com> wrote:
Thanks. I guess I'll just have to monitor the transfers from the G Suite admin reporting.

On Monday, January 8, 2018 at 4:04:35 AM UTC-5, +KimNilsson wrote:
Yeah, zero progress monitoring.

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsubscribe...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.



--

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--

Chuck W. Williams

unread,
Jan 9, 2018, 11:45:12 AM1/9/18
to GAM for G Suite
Awesome..thanks a ton Ross


On Tuesday, January 9, 2018 at 11:44:07 AM UTC-5, Ross Scroggs wrote:
Rob/Chuck,

I'm working on it, I'll post an announce when I've got it.

Ross
On Tue, Jan 9, 2018 at 8:07 AM, Chuck W. Williams <chuck.wi...@nielsen.com> wrote:
Hi Team,

I have a similar request..checking if I can transfer a folder from My Drive to a Team Drive using Ross's GAMADV-XTD version.  The source folder has a lot of items and folders that need to be moved to a Team Drive..

Regards

On Monday, January 8, 2018 at 3:13:44 PM UTC-5, Ross Scroggs wrote:
Rob,

I'm working on this:

# gam <UserTypeEntity> move drivefile <DriveFileEntity> [newfilename <DriveFileName>] [recursive [depth <Number>]]                                                                                                                                             

#       [parentid <DriveFolderID>] [parentname <DriveFolderName>]                                                                                                                                                                                              

#       [teamdriveparentid <DriveFolderID>] [teamdriveparent <TeamDriveName>] [teamdriveparentname <DriveFolderName>]                                                                                                                                          


Ross
On Mon, Jan 8, 2018 at 12:09 PM, Rob. <rlea...@gmail.com> wrote:
Thanks. I guess I'll just have to monitor the transfers from the G Suite admin reporting.

On Monday, January 8, 2018 at 4:04:35 AM UTC-5, +KimNilsson wrote:
Yeah, zero progress monitoring.

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.



--

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.



--

Rob.

unread,
Jan 9, 2018, 2:36:52 PM1/9/18
to GAM for G Suite
Thanks Ross.  That's awesome.


On Tuesday, January 9, 2018 at 11:44:07 AM UTC-5, Ross Scroggs wrote:
Rob/Chuck,

I'm working on it, I'll post an announce when I've got it.

Ross
On Tue, Jan 9, 2018 at 8:07 AM, Chuck W. Williams <chuck.wi...@nielsen.com> wrote:
Hi Team,

I have a similar request..checking if I can transfer a folder from My Drive to a Team Drive using Ross's GAMADV-XTD version.  The source folder has a lot of items and folders that need to be moved to a Team Drive..

Regards

On Monday, January 8, 2018 at 3:13:44 PM UTC-5, Ross Scroggs wrote:
Rob,

I'm working on this:

# gam <UserTypeEntity> move drivefile <DriveFileEntity> [newfilename <DriveFileName>] [recursive [depth <Number>]]                                                                                                                                             

#       [parentid <DriveFolderID>] [parentname <DriveFolderName>]                                                                                                                                                                                              

#       [teamdriveparentid <DriveFolderID>] [teamdriveparent <TeamDriveName>] [teamdriveparentname <DriveFolderName>]                                                                                                                                          


Ross
On Mon, Jan 8, 2018 at 12:09 PM, Rob. <rlea...@gmail.com> wrote:
Thanks. I guess I'll just have to monitor the transfers from the G Suite admin reporting.

On Monday, January 8, 2018 at 4:04:35 AM UTC-5, +KimNilsson wrote:
Yeah, zero progress monitoring.

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.



--

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.



--

Frank Barton

unread,
Mar 15, 2018, 9:46:47 AM3/15/18
to google-ap...@googlegroups.com
Kind of related, but I'm wondering if it might be possible to, instead of moving a folder, do a datatransfer from <olduser> to <teamdrive> (if anybody has any other brilliant ideas, I'd be interested in hearing them)

Frank

On Tue, Jan 9, 2018 at 2:36 PM, Rob. <rlea...@gmail.com> wrote:
Thanks Ross.  That's awesome.

On Tuesday, January 9, 2018 at 11:44:07 AM UTC-5, Ross Scroggs wrote:
Rob/Chuck,

I'm working on it, I'll post an announce when I've got it.

Ross
On Tue, Jan 9, 2018 at 8:07 AM, Chuck W. Williams <chuck.wi...@nielsen.com> wrote:
Hi Team,

I have a similar request..checking if I can transfer a folder from My Drive to a Team Drive using Ross's GAMADV-XTD version.  The source folder has a lot of items and folders that need to be moved to a Team Drive..

Regards

On Monday, January 8, 2018 at 3:13:44 PM UTC-5, Ross Scroggs wrote:
Rob,

I'm working on this:

# gam <UserTypeEntity> move drivefile <DriveFileEntity> [newfilename <DriveFileName>] [recursive [depth <Number>]]                                                                                                                                             

#       [parentid <DriveFolderID>] [parentname <DriveFolderName>]                                                                                                                                                                                              

#       [teamdriveparentid <DriveFolderID>] [teamdriveparent <TeamDriveName>] [teamdriveparentname <DriveFolderName>]                                                                                                                                          


Ross
On Mon, Jan 8, 2018 at 12:09 PM, Rob. <rlea...@gmail.com> wrote:
Thanks. I guess I'll just have to monitor the transfers from the G Suite admin reporting.

On Monday, January 8, 2018 at 4:04:35 AM UTC-5, +KimNilsson wrote:
Yeah, zero progress monitoring.

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsubscribe...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.



--

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsubscribe...@googlegroups.com.

To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.



--

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Frank Barton
Security+, ACMT, MCP
IT Systems Administrator
Husson University

Richard Champlin

unread,
Jun 11, 2018, 10:21:48 AM6/11/18
to GAM for G Suite
Where is this in the web-interface? I cannot find any way to transfer whole folders into Team Drive...

(google for non-profits edition user here; not education, if that matters)

Kim Nilsson

unread,
Jun 11, 2018, 12:01:55 PM6/11/18
to Google Apps Manager
Hi, Richard!

You need to go to Admin Roles, and create a new admin role with that specific ability.
Then assign it to the people that should be able to do it.

/Kim
--
There is No Substitute!

Richard Champlin

unread,
Jun 11, 2018, 1:07:24 PM6/11/18
to google-ap...@googlegroups.com
Hi and thanks!, but....

So I have added the custom admin role and assigned it to a SuperAdmin account...however, I am still at a loss of *how* to actually move a folder from a user to a Team Drive in the web-interface?

Thanks,

RICHARD CHAMPLIN
Vice-President, Information Services & Facilities Management


Join United Way of the Mid-South and be a part of Driving The Dream to help more
people escape poverty so they can live the life of their dreams. Give To United Way today

United Way of the Mid-South    |    1005 Tillman Street, Memphis, TN 38112


--
You received this message because you are subscribed to a topic in the Google Groups "GAM for G Suite" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-manager/hPVwbB2OkfM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-apps-man...@googlegroups.com.

To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.

Kim Nilsson

unread,
Jun 11, 2018, 1:20:17 PM6/11/18
to Google Apps Manager
Oh, two things.
1. Superadmin can always move folders. 
2. Just drag and drop, or right click and select move. 

Richard Champlin

unread,
Jun 11, 2018, 1:30:04 PM6/11/18
to google-ap...@googlegroups.com
So how do you see other users' drives that have not been specifically shared with you?

For example, the issue I have right now is a departed user whose account is over quota. So I want to move a bunch of his personal drive folders to a departmental team drive. 

Do I share the user's entire folder structure to my superadmin account (and then do the drag and drops from there)? That's the only obvious method I can think of.

Is there a better way?

Sorry to be so confused...

Thanks,

RICHARD CHAMPLIN
Vice-President, Information Services & Facilities Management


Join United Way of the Mid-South and be a part of Driving The Dream to help more
people escape poverty so they can live the life of their dreams. Give To United Way today

United Way of the Mid-South    |    1005 Tillman Street, Memphis, TN 38112

--
You received this message because you are subscribed to a topic in the Google Groups "GAM for G Suite" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-manager/hPVwbB2OkfM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.

Kim Nilsson

unread,
Jun 12, 2018, 1:57:44 AM6/12/18
to Google Apps Manager
Exactly, if you, and not the user himself, have to do it, then you must have access to the user's folders/files. 
Reply all
Reply to author
Forward
0 new messages