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
Steve_Neo
5 years agoExplorer | Level 3
Can I use business app to access personal dropbox?
We provider an integration to our customers to upload files created by system. It works well for personal account. Basically, the process is the customer use Dropbox File Brower pick a folder, and ...
- 5 years ago
Yes, you can use an access token for a non-Business app to access Business accounts, including team folders.
First, for reference, the "Unexpected select user header" error is expected if you attempt to set the "Dropbox-API-Select-User" header when using an access token for a non-Business app, as that functionality is only needed for Business apps. You can remove that code and just use an access token for a non-Business app.
To access different parts of an account, you should use the "Dropbox-API-Path-Root" functionality as you've already begun to, as seen in your code. Note that you don't need to set this manually if you're using the Python SDK though. You can use the Dropbox.with_path_root method to set it instead.
For information on how to list and access different parts of Dropbox accounts, please review the Namespace Guide.
Steve_Neo
Explorer | Level 3
So my question could be, can I use non-Business app token to upload file to team folder?
Greg-DB
5 years agoDropbox Staff
Yes, you can use an access token for a non-Business app to access Business accounts, including team folders.
First, for reference, the "Unexpected select user header" error is expected if you attempt to set the "Dropbox-API-Select-User" header when using an access token for a non-Business app, as that functionality is only needed for Business apps. You can remove that code and just use an access token for a non-Business app.
To access different parts of an account, you should use the "Dropbox-API-Path-Root" functionality as you've already begun to, as seen in your code. Note that you don't need to set this manually if you're using the Python SDK though. You can use the Dropbox.with_path_root method to set it instead.
For information on how to list and access different parts of Dropbox accounts, please review the Namespace Guide.
- steveneo5 years agoExplorer | Level 3
Yes, it works now. I think the major issue is I set the wrong permission on non-Business app. It should be "fullaccess".
The reason I didn't use Dropbox.with_path_root method. It is because it reset other HTTP headers, because I thought I should use both Dropbox-API-Select-User and root_path. Anyway, this is not important now. Thanks!
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,912 PostsLatest Activity: 2 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!