timbo343 Posted April 29, 2022 Posted April 29, 2022 (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 April 29, 2022 by timbo343
Danp Posted April 29, 2022 Posted April 29, 2022 I've copied folders (including their subfolders) from one user to another using GAMADV-XTD3 1
timbo343 Posted April 29, 2022 Author Posted April 29, 2022 (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 April 29, 2022 by timbo343
NotSoFast Posted May 2, 2022 Posted May 2, 2022 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. 1
jthompson Posted May 3, 2022 Posted May 3, 2022 If you can generate a list of all the folder (and file?) IDs you could then feed GAM a CSV file of all those to do in bulk.
paulkerton Posted May 3, 2022 Posted May 3, 2022 As previously mentioned, GAMADV-XT3 will do this, or you can get a list of the IDs and then feed a CSV file.
timbo343 Posted May 7, 2022 Author Posted May 7, 2022 (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 May 7, 2022 by timbo343 2
Danp Posted May 10, 2022 Posted May 10, 2022 Using GAMADV-XTD3 gam user [email protected] copy drivefile [i]drivefolderid[/i] recursive copytopfolderpermissions false copyfilepermissions false copysubfolderpermissions false parentid [i]destinationdrivefolderid[/i]
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now