We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Steve_Neo
6 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 ...
- 6 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
6 years agoExplorer | Level 3
So my question could be, can I use non-Business app token to upload file to team folder?
Greg-DB
Dropbox Community Moderator
6 years agoYes, 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.
- steveneo6 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.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
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, Facebook or Instagram.
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!