Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
amjadkhalil
4 years agoNew member | Level 2
Searching using search_v2 not searching in all directory
When i use the api search_v2 to search for a file by file name it do search only on the APP Folder that was created by api, and it does not search in the whole Dropbox.
Any solution for this?
Thanks to Здравко for helping troubleshoot this.
amjadkhalil If you're still unable to get the expected results, we can help look into this specifically. In that case, you can open an API ticket here and share the following details:
- the registered name of the API app for the access token you're using
- the name and version number of the platform and SDK/library you are using, if any
- the steps to reproduce the issue, including relevant code snippet(s) and parameter value(s), but don't include any access or refresh token(s)
- the affected account ID(s)
- the output you are currently getting
- a sample of the expected output
17 Replies
Replies have been turned off for this discussion
- Здравко4 years agoLegendary | Level 20
Hi amjadkhalil,
Since your application uses app folder, it has lost access to the rest of entire user content. This is possible mistake at application creation time. You will need to recreate the application with full dropbox access, if you really need such. 😉
Hope this helps.
- amjadkhalil4 years agoNew member | Level 2
Thank you for your reply. I noticed that there is new option where you choose the whole dropbox application but it is still not retriving all results . it retrive only the files or data created by user.
I did try by genrate bearer and by oauth2 flow.Am still getting only the files or data created by user.
- Здравко4 years agoLegendary | Level 20
Hello again amjadkhalil,
I have no idea what exactly you have tried, but as far as I know there is no way to change the type of the application once created, unfortunately. Would be fine such an option to be added at some point in the future by Dropbox team. Anyway, it's missing now. That's why I told you that have to recreate your application (anew - wipe out the existing, or no, and create it again with more care what you will select)!!! Changing permissions only isn't enough!
Hope now it's a bit more clear.
- amjadkhalil4 years agoNew member | Level 2
What am trying to say is i did create another app with the whole dropbox application.But search retrive only files created by me not other users.
- Здравко4 years agoLegendary | Level 20
🙂 Of course, any application does list/access only files granted by available token(s). Have the "other users", that you mean, granted your application access to their accounts? 😉
- amjadkhalil4 years agoNew member | Level 2
No they have not.
- amjadkhalil4 years agoNew member | Level 2
I just make sure right now that the folder path i want to search on it is a shared folder but i still cannot search on it.
- Здравко4 years agoLegendary | Level 20
There is no reason any shared folder (either shared by you or shared to you) to be something limiting. I just checked and everything seems to work fine.
You can look for the issue further, as trying to reach the particular file where you are expecting something to be found. Are you able to navigate, using your application, to there? If there is some issue, what's the error message, returned by API?
- amjadkhalil4 years agoNew member | Level 2
Am getting this error message:
Error in call to API function "files/search_v2": This API function operates on a single Dropbox account, but the OAuth 2 access token you provided is for an entire Dropbox Business team. Since your API app key has team member file access permissions, you can operate on a team member's Dropbox by providing the "Dropbox-API-Select-User" HTTP header or "select_user" URL parameter to specify the exact user <https://www.dropbox.com/developers/documentation/http/teams>. - Здравко4 years agoLegendary | Level 20
Aahh... You are trying a team account...
In such a case any file/folder access (like the one 'search' do) need to be performed behind particular user (not the team). That's why you have to "personalize" (if could be said so) your access while using team account. This could be done automatically by just removing all team related scopes in permissions, if you are not using them. In such a way no any change needs to be done on the code. Other way is, as described within the error message, represent an user (you for example). You have to change the code using this way (take a look here for more info).
Hope this gives direction.
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!