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
borhene
2 years agoNew member | Level 2
Cannot get team folder's content
Hello,
I am using a dropbox app to get users dropbox content with APIs. It works fine with user personal account.
But, when I can't find a way to get content of a team shared folder.
Here a...
- 2 years ago
To do that you need to use WithPathRoot. By the way, team folder id is neither admin nor member id. That's why you got the error. 😉
Здравко
2 years agoLegendary | Level 20
Hi borhene,
By default, all calls to access content are rooted to user/member folder (not to account root). On personal account, account root and user folder are the same thing, which is NOT the case for member of team account (seen on your screenshot too). To be able list something outside member folder, you have to explicitly set root namespace (to be account root for instance). 😉
Hope this gives direction.
- borhene2 years agoNew member | Level 2
Hi,
Thanks for your answer.
I tried this way. I got an error saying that we have a wrong format userId.
Here the code that is working well for personal drive:
Here the code that is returning an error saying that the userId has wrong format
It is not expecting to get an id of teamDrive.
Thank you.
- Здравко2 years agoLegendary | Level 20
To do that you need to use WithPathRoot. By the way, team folder id is neither admin nor member id. That's why you got the error. 😉
- borhene2 years agoNew member | Level 2
Thank you,
It works and here the implemented code
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,882 PostsLatest Activity: 5 hours agoIf 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!