Learn how to make the most out of the Dropbox Community here 💙.
Forum Discussion
mja101
2 years agoExplorer | Level 3
Listing every team folder and date last modified
I am trying to list every dropbox team folder and a date against it that specifies the last time a file within was modified. I have been successful in listing folders with the below script howev...
Greg-DB
Dropbox Staff
2 years agoAs you found, starting from files_list_folder(path='') will only list the contents of that particular member's folder; if there are other team folders that the member doesn't have mounted in their account, those team folders won't be found that way.
You can list all team folders for a team using team_team_folder_list/team_team_folder_list_continue though. (Similarly, if you want to list all "namespaces", which includes team folders, you can use team_namespaces_list/team_namespaces_list_continue.) These methods are called using a DropboxTeam instance, not a Dropbox instance, so you would call them without the 'as_admin'.
Then, you can start listing any arbitrary team folder like this:
dbx_team.as_admin(admin_id).files_list_folder("ns:" + team_folder_id)
And for reference, if you need to list a "team space", refer to the Team Files Guide.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,970 PostsLatest Activity: 11 hours ago
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 or Facebook.
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!