cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Are you interested in hearing how one of our Community members uses Dropbox for sailing trips? Read all about it 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: 

Cannot get team folder's content

Cannot get team folder's content

borhene
New member | Level 2
Go to solution

Hello,

 

I am using a dropbox app to get users dropbox content with APIs. It works fine with user personal account.

But, when I can't find a way to get content of a team shared folder.

Here an example:

borhene_0-1694072881601.png

So with ListFolderAsync I can access and get all folders and files inside the first folder which is personal user's drive.

For the second one which is a team shred folder, I can't find a way to get folder content.

The TeamFolderListAsync call is returning this shared folder with its Id but nor the content.

Is there any way to retrieve this team shared content with .Net SDK ?

 

Thank You

 

 

1 Accepted Solution

Accepted Solutions

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

To do that you need to use WithPathRoot. By the way, team folder id is neither admin nor member id. That's why you got the error. 😉

View solution in original post

4 Replies 4

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

Hi @borhene,

By default, all calls to access content are rooted to user/member folder (not to account root). On personal account, account root and user folder are the same thing, which is NOT the case for member of team account (seen on your screenshot too). To be able list something outside member folder, you have to explicitly set root namespace (to be account root for instance). 😉

Hope this gives direction.

borhene
New member | Level 2
Go to solution

Hi,

Thanks for your answer.

I tried this way. I got an error saying that we have a wrong format userId.

Here the code that is working well for personal drive:

borhene_0-1694076583596.png

 

Here the code that is returning an error saying that the userId has wrong format

borhene_1-1694076647752.png

 

It is not expecting to get an id of teamDrive.

 

Thank you.

 

 

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

To do that you need to use WithPathRoot. By the way, team folder id is neither admin nor member id. That's why you got the error. 😉

borhene
New member | Level 2
Go to solution

Thank you,

It works and here the implemented code

 

borhene_0-1694081529921.png

 

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    borhene New member | Level 2
  • User avatar
    Здравко Legendary | Level 20
What do Dropbox user levels mean?