taers232c / GAMADV-XTD3

Command line tool to manage Google Workspace
687 stars 86 forks source link

Getting error while trying to transfer ownership of folder #372

Closed xeroxoid closed 9 months ago

xeroxoid commented 9 months ago

Hi, excellent work, the project rocks!

I am trying to transfer ownership of a folder FOO (and its contents) from user XXX to user YYY

I follow the command chain highlighted here: https://sites.google.com/jis.edu.bn/gam-commands/services/drive#h.9yk8eaecf289

First command generates the CSV with the files list, all ok. Now when I run the second command that should loop over the files list:

gam csv gsheet XXX LONG_DRIVE_FILE_ID GSHEET_ID gam user ~Owner add drivefileacl ~id user YYY role owner

I get the error: zsh: no such user or named directory: Owner

Is it an issue or am I doing something wrong?

Extra info: GAM version: 6.63.14 OS: MacOS Shell: zsh

xeroxoid commented 9 months ago

Scratch that, I followed the Wiki docs and used

gam <UserTypeEntity> transfer ownership <DriveFileEntity> <UserItem>

And all seems to have worked well!

taers232c commented 9 months ago

Use quotes gam csv gsheet XXX LONG_DRIVE_FILE_ID GSHEET_ID gam user "~Owner" add drivefileacl "~id" user YYY role owner


Ross Scroggs @.***

On Sep 14, 2023, at 1:10 AM, Milt @.***> wrote:

gam csv gsheet XXX LONG_DRIVE_FILE_ID GSHEET_ID gam user ~Owner add drivefileacl ~id user YYY role owner