Jump to content

Recommended Posts

Posted (edited)

We have a user that needs to have some (not all) folders and files that need transferring to another user but finding that we are having to go through each folder in turn - for example:

 

- Folder 1

-- Sub folder 1.1

---- Sub folder 1.1.1

---- Sub folder 1.1.2

-- Sub folder 1.2

---- Sub folder 1.2.1

---- Sub folder 1.2.2

- folder 2

 

We have changed the ownership on Folder 1 but finding that this is not replicating through to the Sub Folders of Folder 1 so we are having to go through each folder in turn.

 

Is there an easier way to do this other than transferring ownership individually?

 

Bear in mind we have to do this via GAM as we cannot access the Personal Google Drive.

Edited by timbo343
Posted (edited)

Ive been using GAM but it's as if it only transfers Folder 1 to the new owner and leaves the subfolders assigned to the old user.

 

Sorry, what's GAMADV-XTD3?

Edited by timbo343
Posted
Ive been using GAM but it's as if it only transfers Folder 1 to the new owner and leaves the subfolders assigned to the old user.

 

Sorry, what's GAMADV-XTD3?

It's "advanced" GAM. It's got quite a few more features.
  • Thanks 1
Posted (edited)

Managed to find a way to do this - it's a bit long winded but it worked via usual GAM.

 

To get a list of Files and folders from Google Drive, follow the link below. For it to work, it does require the new user to have visibility of the top level folder.

 

https://ourtechroom.com/fix/list-all-googledrive-links-files-folder-to-googlesheet/

 

I exported the results to Excel but you can work in sheets if you require.

 

The URL column had to have the Text to Columns process run against it to extract the ID of the folder / file to it's own column.

 

Merged together the current user email address, file or folder id and new user email address using Concatenate with the following example:

 

gam user  add drivefileacl  user  role owner

 

The new user will receive an email for each item that is shared / transferred to the new user.

 

Once the files / folders have been shared, to remove the old user from the file / folder run the following command:

 

gam user  delete drivefileacl  "id: 10261307913288961501" 

 

10261307913288961501 = editor permission.

 

To find the permissions of the file / folder the following command was run:

 

gam user  show drivefileacl 

Edited by timbo343
  • Thanks 2
Posted

Using GAMADV-XTD3

 

 

gam user [email protected] copy drivefile [i]drivefolderid[/i] recursive copytopfolderpermissions false copyfilepermissions false copysubfolderpermissions false parentid [i]destinationdrivefolderid[/i]

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...