Dropbox business team folders

I noticed something today -

rclone lsf/lsd behave exactly the same with and without the trailing /

(edited out the actual list of folders as it contains sensative info but it is identical)

rclone v1.62.2

  • os/version: ubuntu 18.04 (64 bit)
  • os/kernel: 4.15.0-208-generic (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.20.2
  • go/linking: static
  • go/tags: none

[dropbox]
type = dropbox
client_id = xxx
client_secret = xxxx
token = {"access_token":"xxx"}
impersonate = my (admin) email

so:

rclone lsd dropbox:/ --dropbox-impersonate 'user who isn't me'
rclone lsd dropbox: --dropbox-impersonate 'user who isn't me'

2023/05/18 15:50:32 NOTICE: --dump-headers is obsolete - please use --dump headers instead
2023/05/18 15:50:32 DEBUG : rclone: Version "v1.62.2" starting with parameters ["rclone" "lsd" "dropbox:" "--dropbox-impersonate" "user" "-vvvv" "--dump-headers"]
2023/05/18 15:50:32 DEBUG : Creating backend with remote "dropbox:"
2023/05/18 15:50:32 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2023/05/18 15:50:32 DEBUG : dropbox: detected overridden config - adding "{YXjXs}" suffix to name
2023/05/18 15:50:32 DEBUG : You have specified to dump information. Please be noted that the Accept-Encoding as shown may not be correct in the request and the response may not show Content-Encoding if the go standard libraries auto gzip encoding was in effect. In this case the body of the request will be gunzipped before showing it.
2023/05/18 15:50:32 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023/05/18 15:50:32 DEBUG : HTTP REQUEST (req 0xc000a90500)
2023/05/18 15:50:32 DEBUG : POST /2/team/members/get_info HTTP/1.1
Host: api.dropboxapi.com
User-Agent: rclone/v1.62.2
Content-Length: 58
Authorization: XXXX
Content-Type: application/json
Accept-Encoding: gzip

2023/05/18 15:50:32 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023/05/18 15:50:32 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023/05/18 15:50:32 DEBUG : HTTP RESPONSE (req 0xc000a90500)
2023/05/18 15:50:32 DEBUG : HTTP/2.0 200 OK
Accept-Encoding: identity,gzip
Cache-Control: no-cache
Content-Type: application/json
Date: Thu, 18 May 2023 15:50:32 GMT
Server: envoy
Vary: Accept-Encoding
X-Content-Type-Options: nosniff
X-Dropbox-Request-Id: dd9546e35f2444e19068665ad6e6ecf7
X-Dropbox-Response-Origin: far_remote
X-Frame-Options: SAMEORIGIN
X-Server-Response-Time: 99

2023/05/18 15:50:32 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023/05/18 15:50:32 DEBUG : fs cache: renaming cache item "dropbox:" to be canonical "dropbox{YXjXs}:"
2023/05/18 15:50:32 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023/05/18 15:50:32 DEBUG : HTTP REQUEST (req 0xc000148300)
2023/05/18 15:50:32 DEBUG : POST /2/files/list_folder HTTP/1.1
Host: api.dropboxapi.com
User-Agent: rclone/v1.62.2
Content-Length: 208
Authorization: XXXX
Content-Type: application/json
Dropbox-Api-Select-User: xxx
Accept-Encoding: gzip

2023/05/18 15:50:32 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023/05/18 15:50:32 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023/05/18 15:50:32 DEBUG : HTTP RESPONSE (req 0xc000148300)
2023/05/18 15:50:32 DEBUG : HTTP/2.0 200 OK
Accept-Encoding: identity,gzip
Cache-Control: no-cache
Content-Type: application/json
Date: Thu, 18 May 2023 15:50:32 GMT
Server: envoy
Vary: Accept-Encoding
X-Content-Type-Options: nosniff
X-Dropbox-Request-Id: f94fd7bdae9240c78de5b9ee6911863e
X-Dropbox-Response-Origin: far_remote
X-Frame-Options: SAMEORIGIN
X-Server-Response-Time: 262

2023/05/18 15:50:32 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
-1 2023-05-18 15:50:32 -1 Folder list

2023/05/18 15:50:32 DEBUG : 6 go routines active
2023/05/18 15:50:32 INFO : Dropbox root '': Committing uploads - please wait...

root@ash-sm5038mr-h8trf-14-6:/rclone# rclone lsd dropbox:/ --dropbox-impersonate 'user' -vvvv --dump-headers
2023/05/18 15:50:41 NOTICE: --dump-headers is obsolete - please use --dump headers instead
2023/05/18 15:50:41 DEBUG : rclone: Version "v1.62.2" starting with parameters ["rclone" "lsd" "dropbox:/" "--dropbox-impersonate" "user" "-vvvv" "--dump-headers"]
2023/05/18 15:50:41 DEBUG : Creating backend with remote "dropbox:/"
2023/05/18 15:50:41 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2023/05/18 15:50:41 DEBUG : dropbox: detected overridden config - adding "{YXjXs}" suffix to name
2023/05/18 15:50:41 DEBUG : You have specified to dump information. Please be noted that the Accept-Encoding as shown may not be correct in the request and the response may not show Content-Encoding if the go standard libraries auto gzip encoding was in effect. In this case the body of the request will be gunzipped before showing it.
2023/05/18 15:50:41 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023/05/18 15:50:41 DEBUG : HTTP REQUEST (req 0xc000828100)
2023/05/18 15:50:41 DEBUG : POST /2/team/members/get_info HTTP/1.1
Host: api.dropboxapi.com
User-Agent: rclone/v1.62.2
Content-Length: 58
Authorization: XXXX
Content-Type: application/json
Accept-Encoding: gzip

2023/05/18 15:50:41 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023/05/18 15:50:41 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023/05/18 15:50:41 DEBUG : HTTP RESPONSE (req 0xc000828100)
2023/05/18 15:50:41 DEBUG : HTTP/2.0 200 OK
Accept-Encoding: identity,gzip
Cache-Control: no-cache
Content-Type: application/json
Date: Thu, 18 May 2023 15:50:42 GMT
Server: envoy
Vary: Accept-Encoding
X-Content-Type-Options: nosniff
X-Dropbox-Request-Id: 83d5f7136b3b4bd3b6d6c3f4365cc863
X-Dropbox-Response-Origin: far_remote
X-Frame-Options: SAMEORIGIN
X-Server-Response-Time: 141

2023/05/18 15:50:41 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023/05/18 15:50:41 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023/05/18 15:50:41 DEBUG : HTTP REQUEST (req 0xc000f4a400)
2023/05/18 15:50:41 DEBUG : POST /2/users/get_current_account HTTP/1.1
Host: api.dropboxapi.com
User-Agent: rclone/v1.62.2
Content-Length: 0
Authorization: XXXX
Dropbox-Api-Select-User: xxx
Accept-Encoding: gzip

2023/05/18 15:50:41 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023/05/18 15:50:42 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023/05/18 15:50:42 DEBUG : HTTP RESPONSE (req 0xc000f4a400)
2023/05/18 15:50:42 DEBUG : HTTP/2.0 200 OK
Accept-Encoding: identity,gzip
Cache-Control: no-cache
Content-Type: application/json
Date: Thu, 18 May 2023 15:50:42 GMT
Server: envoy
Vary: Accept-Encoding
X-Content-Type-Options: nosniff
X-Dropbox-Request-Id: f3a2bfd7b2944653b5f8e1a47a4d4a9b
X-Dropbox-Response-Origin: far_remote
X-Frame-Options: SAMEORIGIN
X-Server-Response-Time: 387

2023/05/18 15:50:42 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023/05/18 15:50:42 DEBUG : Dropbox root '': Using root namespace "xx"
2023/05/18 15:50:42 DEBUG : fs cache: renaming cache item "dropbox:/" to be canonical "dropbox{YXjXs}:"
2023/05/18 15:50:42 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023/05/18 15:50:42 DEBUG : HTTP REQUEST (req 0xc00023e700)
2023/05/18 15:50:42 DEBUG : POST /2/files/list_folder HTTP/1.1
Host: api.dropboxapi.com
User-Agent: rclone/v1.62.2
Content-Length: 208
Authorization: XXXX
Content-Type: application/json
Dropbox-Api-Path-Root: {".tag": "namespace_id", "namespace_id": "xxx"}
Dropbox-Api-Select-User: xxx
Accept-Encoding: gzip

2023/05/18 15:50:42 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023/05/18 15:50:42 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023/05/18 15:50:42 DEBUG : HTTP RESPONSE (req 0xc00023e700)
2023/05/18 15:50:42 DEBUG : HTTP/2.0 200 OK
Accept-Encoding: identity,gzip
Cache-Control: no-cache
Content-Type: application/json
Date: Thu, 18 May 2023 15:50:42 GMT
Server: envoy
Vary: Accept-Encoding
X-Content-Type-Options: nosniff
X-Dropbox-Request-Id: 65b002e173d84efeb6ce9ac07ca68cd2
X-Dropbox-Response-Origin: far_remote
X-Frame-Options: SAMEORIGIN
X-Server-Response-Time: 213

2023/05/18 15:50:42 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
-1 2023-05-18 15:50:42 -1 2

      folder list 

2023/05/18 15:50:42 DEBUG : 6 go routines active
2023/05/18 15:50:42 INFO : Dropbox root '': Committing uploads - please wait...

addendum this is what the test user in question has in their folder obviously looking to filter on "only you"

dropbox account, business or personal?

it's a business account

duh, you put that into the title of this topic; wink

a workaround might be doing a lsf with and without --dropbox-shared-folders, what's unique matches the personal folders

The response to POST /2/users/get_current_account is what determines exactly which namespace we are looking at. See the api docs on that.

Is this namespace

The correct one for the user that is being impersonated?

Good question, I’ll have to test with native API to see - as I realized running with/without —Dropbox-shared-folders - the difference is the user’s folders - so I ran —Dropbox-shared-folders and made that an exclude list for the the user - which seems to work - will see if I can test with the api directly

I think this is something to do with --dropbox-impersonate and rclone getting the wrong namespace because of that.

Ahh that makes sense - as I said the listing + exclude does the trick might be worthwhile to build in some kind of built in mechanic or update the wiki thanks

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