Ability to use --drive-shared-with-me flag from RC interface

I have an application that uses rclone's RC interface, and I'm wanting to access the user's shared Google Drive folder. On the CLI interface you can do such through the --drive-shared-with-me flag, but I'm unaware of any way to do this via the RC interface.

Am I just missing something, or is this something that just isn't implemented yet? I'd be open to helping add the feature if needed.

Create remote with access to shared content:

[drive]
type = drive
scope = drive
token = XXX
root_folder_id = XXX

[drive-shared]
type = drive
scope = drive
token = XXX
root_folder_id = XXX
shared_with_me = true

That works @kapitainsky, but it introduces complexity into my application that I'd prefer to avoid. It'd be cleaner if I could make rclone access the Shared with me folder per-call instead of globally in a config file, as I have places in my application that would be accessing and writing to the user's My Drive and Shared with me folders at the same time.

Assuming your main remote is called gdrive: you can set shared with me on a per call basis with gdrive,shared_with_me:

This is called a connection string.

1 Like

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