Hello,
I’m developing a .NET application to automate a few tasks in Dropbox. Specifically, I need to access team folders and their subfolders. For team folders, I’m using the `DropboxTeamClient.Team.TeamFolderListAsync()` API function. I’m able to retrieve the expected items. However, I can’t figure out how to read the content of these team folders. The documentation and forums suggest using `DropboxClient.Files.ListFolderAsync()`. But when I do this, I only can read the content of my personal folders. The specific team folder I want to access does not appear.
I’ve carefully read the following article: https://developers.dropbox.com/fr-fr/dbx-team-files-guide. With additional information from forums, I understand that I need to:
- Connect as an administrator using the `DropboxTeamClient.AsAdmin()` function.
- Reposition the root folder using the `DropboxClient.WithPathRoot()` function.
Combining these two approaches does indeed extend my permissions and changes the root from which I access folders, allowing me to view the team folders I natively have access to. However, I still don’t see the team folder I’m interested in.
The workaround I’ve used for now is to modify my profile to assign the folder in question to my account. But this means that in order to fully inventory all team folders and control the permissions on their subfolders, I would have to assign myself all of the team folders. And potentially do the same for any other user of my application. This approach seems less than ideal. Especially since, through the admin console, I can easily view the contents of team folders. So, there must be a way to do this with the API without assigning the folders to myself, but I can’t find it.
Thanks for your help!