cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Share your feedback on the Document Scanning Experience in the Dropbox App right here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

List_folder does not return shared Bussines folders

List_folder does not return shared Bussines folders

AlexBrajkovic
Explorer | Level 4
Go to solution

Hi,

User has Business dropbox account, and when accessing list_folder with his token we only get folders that are under his Personal Account. The other 2 team business folders are not being returned.
Note: We are not using Dropbox Business API.

When User access Drobox it has 3 folders on UI with the following structure: 
1. Name Surname
2. Some Team Folder
3. Other Team folder

Using node official package

dbx.filesListFolder({
                      path:                                '',
                      recursive:                           false,
                      include_has_explicit_shared_members: true
                   })

The returned entries does contain folders but that is a list of folders on his Personal account listed as first in example above.
Are we doing something wrong?

Thanks for help!
Regards
Alex

 

1 Accepted Solution

Accepted Solutions

Greg-DB
Dropbox Staff
Go to solution

(Apologies, I posted earlier under the mistaken impression that you were using the Python SDK, not the JavaScript SDK. Please disregard the earlier comment.)

 

It sounds like the user is on a team with the new team space configuration. There's more information about this in the Namespace Guide.

 

 

 The API v2 JavaScript SDK doesn't yet support the Dropbox-API-Path-Root header unfortunately, but I'll pass this along as a request to implement that. 

View solution in original post

2 Replies 2

Greg-DB
Dropbox Staff
Go to solution

(Apologies, I posted earlier under the mistaken impression that you were using the Python SDK, not the JavaScript SDK. Please disregard the earlier comment.)

 

It sounds like the user is on a team with the new team space configuration. There's more information about this in the Namespace Guide.

 

 

 The API v2 JavaScript SDK doesn't yet support the Dropbox-API-Path-Root header unfortunately, but I'll pass this along as a request to implement that. 

Greg-DB
Dropbox Staff
Go to solution

The "Dropbox-API-Path-Root" functionality is now available in the JavaScript SDK, as of v4.0.15. You can set it using the pathRoot parameter for the Dropbox constructor:

 

var dbx = new Dropbox.Dropbox({
    accessToken: '<ACCESS_TOKEN>',
    pathRoot: JSON.stringify({".tag": "root", "root": "123456789"})
  });

 

Please refer to the Namespace Guide for more information on using this feature.

 

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?