Hey everyone
I'm trying to get my head around recursively transferring ownership of files and subfolders within a folder from one user to another. I want it to work like the native transferral of ownership G Suite supports, but only for a specific folder and its children and not for the rest of the Drive.
It looks like
gam <UserTypeEntity> transfer drive in GAMADV-X is the ticket, given that it says I can select a folder using
select, or so
documentation leads me to believe.
Syntax in GamCommands.txt are:
gam <UserTypeEntity> transfer drive <UserItem> [select <DriveFileEntity>]
[(targetfolderid <DriveFolderID>)|(targetfoldername <DriveFolderName>)] [targetuserfoldername <DriveFolderName>] [targetuserorphansfoldername <DriveFolderName>]
[keepuser | (retainrole reader|commenter|writer|editor|none)] [noretentionmessages]
[nonowner_retainrole reader|commenter|writer|editor|current|none] [nonowner_targetrole reader|commenter|writer|editor|current|none|source]
(orderby <DriveFileOrderByFieldName> [ascending|descending])*
[preview] [todrive <ToDriveAttribute>*]
So with this in mind, my test was as follows:
The response I get is:
ERROR: 1hDnQ1gGLuXWK2uo1C_WKpg_XLQXDH9vd is not a valid argument for "gam <users> transfer drive"
Then I thought perhaps <UserItem> would need to be entered as an email address of whose ownership I'm trying to change, in addition to the folder, so I tried
ERROR: select is not a valid argument for "gam <users> transfer drive"
Is there something I'm missing here? I hope it's something simple.
Am I better off outputting owned files into a csv as mentioned
here and then figuring out changing each file's ownership individually?
Thanks
Aston