cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
We are making some updates so the Community might be down for a few hours on Monday the 11th of November. Apologies for the inconvenience and thank you for your patience. You can find out more 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: 

Not able to fetch shared folder when folder are shared with team

Not able to fetch shared folder when folder are shared with team

ClicData
New member | Level 2

Hi,

Useful informations

- Using VB.Net with Dropbox.API SDK 6.37

The problem
Using the methods ListFolderAsync and ListFolderContinueAsync, I'm unable to fetch shared folders when folders are shared with a team you are part of, but you are able to retrieve folders when they are directly shared with you.


Am I doing something wrong, and the method ListFolderAsync() is not made to retrieve folders shared with teams ?

3 Replies 3

Здравко
Legendary | Level 20

Hi @ClicData,

First af all, the method ListFolderAsync is not to list shared folders especially. This method is used to list content of a folder. It can list all entries directly residing in the pointed folder or recursively all nested content. In all cases if there is something shared (either file or folder) it will be listed too. If you want to list only shared folders, better use ListFoldersAsync method. You might get confused by difference in account root and API root - they are in general different things that can coincide. By default API root is set to your user folder, for account with team space, not to the account root! If desirable, you may need to change this, otherwise you stay limited to your user folder only. Use WithPathRoot method to do that.

Hope this gives direction.

ClicDataConnectors
Explorer | Level 3

Hi,

 

Thank you for your answer.

It's actually already the logic we use. The thing is, we test the FullAccount.RootInfo.IsTeam property, and in this case we use WithPathRoot(<RootNameSpaceId>).

 

We didn't change anything in the code, this property returned true before that's why we could fetch team folders. Now that it returns false, I wonder if any change was made to the API that I should be aware of.

Thank you for your help

Greg-DB
Dropbox Staff

@ClicDataConnectors You don't actually need to check the RootInfo.IsTeam property; you can always use WithPathRoot to access the root for any kind of account. I recommend reading the Team Files Guide for more information.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    ClicDataConnectors Explorer | Level 3
  • User avatar
    Здравко Legendary | Level 20
What do Dropbox user levels mean?