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?
- 4 years ago
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
amjadkhalil
4 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.
- amjadkhalil4 years agoNew member | Level 2
Thank you.I did personalised the dropbox app and unchecked all team options.
After doing that i still can not retrive results from shared folder?
- Здравко4 years agoLegendary | Level 20
Did you reissue the token in use? 🧐 Take in mind that token caches the permissions state and any change is NOT retroactive!
- amjadkhalil4 years agoNew member | Level 2
Yes sure i did generate new token
- Здравко4 years agoLegendary | Level 20
Ok... Try investigate what's wrong now... Is there some error?... Are you able reach to/list the file in interest?...
- amjadkhalil4 years agoNew member | Level 2
No errors at all:
am sending this data:{"match_field_options": {"include_highlights": false},"options": {"max_results": 300},"query": "Hans Gustafson"} - Здравко4 years agoLegendary | Level 20
😁 And... Ok, be more initiative...
I can't guess what's the result!!! Again, are you able list (within your application) the target file where you know "Hans Gustafson" resides in (in particular)?
By the way, "include_highlights" default value is False, so it's meaningless here.
- Greg-DB4 years ago
Dropbox Community Moderator
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
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!