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

benjaminkromer's avatar
benjaminkromer
Explorer | Level 4
4 years ago

/team_folder/list gives has_more false altough the Team has a shared Folder with full permissions

Hey folks,

we just testing the Business Advanced Plan.

Wenn calling the https://api.dropboxapi.com/2/team/team_folder/list I get the "has_more" key with value false as response.

POSTing the cursor to /team_folder/list/continue gives me an empty array of key "team_folders".

But the Team I'am in has definitely a Team Folder where everybody on that team has full permissions. It just doesn't show up in the API calls.

Did I miss something? What am I doing wrong?

  • Greg-DB's avatar
    Greg-DB
    4 years ago

    Yes, you need to set the Dropbox-API-Path-Root header in order to root an API call in the team space (to access those other folders shown in your screenshot). The Team Files Guide goes over how to do this. That is, you can get the root_namespace_id value from /2/users/get_current_account and use that in the Dropbox-API-Path-Root header value.

  • benjaminkromer's avatar
    benjaminkromer
    Explorer | Level 4

    Thanks for your Answer.

    When I call /files/list_folder The API response with the following error: 

    "Error in call to API function "files/list_folder": This API function operates on a single Dropbox account, but the OAuth 2 access token you provided is for an entire Dropbox Business team..."

     

    But when I use the ID of my user which has Admin permissions or even the owners user with the Dropbox-API-Select-User. I can only see folders in my or his private workspace. Not folders in the teams workspace.

    I just read the Team Files Guide, but I just don't get it. Do I need to use the Dropbox-API-Path-Root header?

    To clearify I made a screenshot.

    I can't really find a good explanation on how to r/w into Teamspaces via API with an App Bearer Token.

    Maybe u can provide more detailed instructions for me.

    Thanks in Advance 

    • Greg-DB's avatar
      Greg-DB
      Icon for Dropbox Staff rankDropbox Staff

      Yes, you need to set the Dropbox-API-Path-Root header in order to root an API call in the team space (to access those other folders shown in your screenshot). The Team Files Guide goes over how to do this. That is, you can get the root_namespace_id value from /2/users/get_current_account and use that in the Dropbox-API-Path-Root header value.

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: 3 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!