taers232c / GAMADV-XTD3

Command line tool to manage Google Workspace
703 stars 87 forks source link

Transferring file to parent / root folder #317

Closed SurrounDTech closed 1 year ago

SurrounDTech commented 1 year ago

Hi,

I am trying to transfer a file from one user's sub folder to another user's root (my drive) and have been trying the following command, but I can't seem to get it to work with targetuserorphansfoldername "". If a folder name is added, the command works correctly but does not when using just the "". Am I running this incorrectly?

gam user user@domain.com transfer drive otheruser@domain.com select <FileID> targetuserfoldername "" retainrole writer nonowner_targetrole source

I receive the following error and it looks to be ignoring the ""

image

With the retainrole removed to just have ""

image

Thanks in advance for your help.

taers232c commented 1 year ago

The fact that the quotes in the command line are blue and all other characters are white is interesting; they are clearly not being recognized by the command line parser. You reference targetuserorphansfoldername "" but I don't see that in the command.

I'm in California (PST) and am available to Meet/Zoom.

Ross


Ross Scroggs @.***

On Nov 22, 2022, at 11:12 PM, SurrounDTech @.***> wrote:

Hi,

I am trying to transfer a file from one user's sub folder to another user's root (my drive) and have been trying the following command, but I can't seem to get it to work with targetuserorphansfoldername "". If a folder name is added, the command works correctly but does not when using just the "". Am I running this incorrectly?

gam user @. transfer drive @. select targetuserfoldername "" retainrole writer nonowner_targetrole source

I receive the following error and it looks to be ignoring the ""

https://user-images.githubusercontent.com/65645186/203489429-aca1ae4c-5ea8-42c5-a6ae-d08ac67d56b7.png With the retainrole removed to just have ""

https://user-images.githubusercontent.com/65645186/203489640-6206925d-181d-46fe-92fc-8f5cfaff994c.png Thanks in advance for your help.

— Reply to this email directly, view it on GitHub https://github.com/taers232c/GAMADV-XTD3/issues/317, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCTYL6ZXF7JBSDHGGPM6I3WJW7WJANCNFSM6AAAAAASIUDC74. You are receiving this because you are subscribed to this thread.

SurrounDTech commented 1 year ago

Hi Ross,

Thanks for the reply and my mistake I should have proofread what I had posted it was the targetuserfoldername "" which was working not the Orphan version (bad copy and paste). I was actually running this in a PowerShell window so will try in just plain cmd and let you know how I go.

SurrounDTech commented 1 year ago

Hey Ross, can confirm it was the powershell windows, sorry I should have picked up on this before logging a ticket.

taers232c commented 1 year ago

It should work in PowerShell, I'm still curious about the blue quotes.

Ross Scroggs @.***

On Nov 23, 2022, at 3:26 PM, SurrounDTech @.***> wrote:

Closed #317 https://github.com/taers232c/GAMADV-XTD3/issues/317 as completed.

— Reply to this email directly, view it on GitHub https://github.com/taers232c/GAMADV-XTD3/issues/317#event-7881408497, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCTYLZBUTIZAH6OJGGHLBLWJ2RZPANCNFSM6AAAAAASIUDC74. You are receiving this because you commented.

taers232c commented 1 year ago

We can do a Meet/Zoom if you'd like.

Ross Scroggs @.***

On Nov 23, 2022, at 3:26 PM, SurrounDTech @.***> wrote:

Closed #317 https://github.com/taers232c/GAMADV-XTD3/issues/317 as completed.

— Reply to this email directly, view it on GitHub https://github.com/taers232c/GAMADV-XTD3/issues/317#event-7881408497, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCTYLZBUTIZAH6OJGGHLBLWJ2RZPANCNFSM6AAAAAASIUDC74. You are receiving this because you commented.

SurrounDTech commented 1 year ago

Hey Ross,

Sorry I am in and out of meeting today (Australian based). The blue is just the colour anything in quotes in PowerShell Windows Terminal.

Working in CMD via Windows Terminal image

Not working Powershell via Windows Terminal (Blue quotes) image

Standard Powershell Window (grey quotes) image

Get-ChildItem with Blue quotes image

Windows Terminal Version image

PowerShell Version image

taers232c commented 1 year ago

See: https://github.com/taers232c/GAMADV-XTD3/wiki/Command-Line-Parsing#windows-powershell https://github.com/taers232c/GAMADV-XTD3/wiki/Command-Line-Parsing#windows-powershell

To pass an empty argument you need ""

Ross

Ross Scroggs @.***

On Nov 23, 2022, at 4:26 PM, SurrounDTech @.***> wrote:

Hey Ross,

Sorry I am in and out of meeting today (Australian based). The blue is just the colour anything in quotes in PowerShell Windows Terminal.

Working in CMD via Windows Terminal https://user-images.githubusercontent.com/65645186/203667419-c17b1003-4a58-4f0b-9012-b40e4994392b.png Not working Powershell via Windows Terminal (Blue quotes) https://user-images.githubusercontent.com/65645186/203667547-3e564f12-ab90-4d16-9b42-ae6618ed5814.png Standard Powershell Window (grey quotes) https://user-images.githubusercontent.com/65645186/203667726-9802ebca-382f-4d85-9aab-9c3f9843bb23.png Get-ChildItem with Blue quotes https://user-images.githubusercontent.com/65645186/203668008-7842965c-5044-45c8-a0ed-3ba2684d710d.png Windows Terminal Version https://user-images.githubusercontent.com/65645186/203667768-35f9876e-a772-41af-97aa-8af268732448.png PowerShell Version https://user-images.githubusercontent.com/65645186/203667835-1afa9c84-9c8f-4dcb-abb9-5cfbd8e7cbf8.png — Reply to this email directly, view it on GitHub https://github.com/taers232c/GAMADV-XTD3/issues/317#issuecomment-1325798806, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCTYL46WI7IUWSFAY4FAJTWJ2YZ5ANCNFSM6AAAAAASIUDC74. You are receiving this because you commented.

SurrounDTech commented 1 year ago

Thanks Ross