Restricted access Google Team Drive

I want to see how much I uploaded to the team drive or make a backup just in case, but sharing links is restricted to only members and the university. You have to be a member before accessing the files.

Thank you.

What is the problem you are having with rclone?

I cannot copy, list, team drive with restricted access using rclone

What is your rclone version (output from rclone version)

rclone version is 1.54.1

  • os/arch: windows/amd64
  • go version: go1.15.8

Which OS you are using and how many bits (eg Windows 7, 64 bit)

Windows 10 64-bit LTSC

Which cloud storage system are you using? (eg Google Drive)

Google Drive. Team Drive owned by Edu university

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone copy drive3 C:\Desktop\Folder

rclone ls drive3:

The rclone config contents with secrets removed.

[drive3]
type = drive
client_id = XXXX
client_secret = XXXX
scope = drive
root_folder_id = XXX
service_account_file = C:\Desktop.json

A log from the command with the -vv flag

2021/03/27 05:26:23 DEBUG : rclone: Version "v1.54.1" starting with parameters ["C:\ProgramData\chocolatey\lib\rclone.portable\tools\rclone-v1.54.1-windows-amd64\rclone.exe" "copy" "drive3:" "C:\Users\Administrator\Desktop\Five" "-vv"]
2021/03/27 05:26:23 DEBUG : Using config file from "C:\Users\Administrator\.config\rclone\rclone.conf"
2021/03/27 05:26:23 DEBUG : Creating backend with remote "drive3:"
2021/03/27 05:26:23 DEBUG : Creating backend with remote "C:/Desktop/Folder"
2021/03/27 05:26:23 DEBUG : fs cache: renaming cache item "C:/Desktop/Folder" to be canonical "//?/C:/Desktop/Folder"
2021/03/27 05:26:23 DEBUG : Local file system at //?/C:/Desktop/Folder: Waiting for checks to finish
2021/03/27 05:26:23 DEBUG : Local file system at //?/C:/Desktop/Folder: Waiting for transfers to finish
2021/03/27 05:26:23 INFO : There was nothing to transfer
2021/03/27 05:26:23 INFO :
Transferred: 0 / 0 Bytes, -, 0 Bytes/s, ETA -
Elapsed time: 0.9s

2021/03/27 05:26:23 DEBUG : 6 go routines active

hello and welcome to the forum,

the correct syntax for a remote must include a :
rclone copy drive3: C:\Desktop\Folder

Hello and Thank you.

I tried it, but same error. Failed to copy: directory not found

before trying rclone copy, make sure rclone ls works,
and add -vv to the command and post the output

I edited my post.

When I enter rclone ls: nothing happened. Just go back to typing cmd.

if rclone ls does not see any files, then there is nothing to copy
2021/03/27 05:26:23 INFO : There was nothing to transfer

Maybe because the folders are restricted? I mean you have to join first to the team drive before you see the files.

I tried it with another team drive that has no link sharing restriction and works fine. So is it possible to rclone copy restricted folders?

can you access the files using the gdrive website GUI?

No idea what is this gdrive websitre GUI.

If you mean I have access to the team drive, yes.

if you have access, then you can copy the files.

Wait. I am using client_id, client_secret, and service_account with different gmail.

Do I need to use the same client_id, client_secret, and service_account I have access to the team drive?

if you want to access something, you have to use the correct credentals.

Thanks for your time. It works now.

Issue was using different gmail account to rclone to access the team drive. Thank you.

good, you got it working...

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.