You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

AlexBrajkovic's avatar
AlexBrajkovic
Explorer | Level 4
7 years ago

List_folder does not return shared Bussines folders

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

 

  • (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's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    (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's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    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.

     

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,910 PostsLatest Activity: 4 days ago
333 Following

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!