cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Share your feedback on the Document Scanning Experience in the Dropbox App right here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Re: Searching using search_v2 not searching in all directory

Searching using search_v2 not searching in all directory

amjadkhalil
New member | Level 2
Go to solution

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?

17 Replies 17

Здравко
Legendary | Level 20
Go to solution

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.

amjadkhalil
New member | Level 2
Go to solution

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?

Здравко
Legendary | Level 20
Go to solution

Did you reissue the token in use? 🧐 Take in mind that token caches the permissions state and any change is NOT retroactive!

amjadkhalil
New member | Level 2
Go to solution

Yes sure i did generate new token

Здравко
Legendary | Level 20
Go to solution

Ok... Try investigate what's wrong now... Is there some error?... Are you able reach to/list the file in interest?...

amjadkhalil
New member | Level 2
Go to solution

No errors at all:
am sending this data:

{
"match_field_options": {
"include_highlights": false
},
"options": {
"max_results": 300
},
"query": "Hans Gustafson"
}

Здравко
Legendary | Level 20
Go to solution

:beaming_face_with_smiling_eyes: 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-DB
Dropbox Staff
Go to solution

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
Need more support?