Hi, I need to list all files stored in my company's Dropbox. I wanted to call the list_folder endpoint as each user, but I'm not sure if that will be enough.
Is that the best way of getting the information?
Thank you in advance!
To list all files/folders under an account, you can use files_list_folder and files_list_folder_continue, specifying recursive=True and path="" (the empty string) on files_list_folder. You can do so for each team member, but be aware that there may be duplication if you do so, since members may have shared folders and/or team folders in common. For that reason, it may be better to start with team_namespaces_list and team_namespaces_list_continue instead to get a list of namespaces and then list each namespace instead.
Like discussed for shared links in your other thread though, note that by default the root is the user's member folder. If the user is on a team with a team space, you can list everything in the team space, but to do so you'd need to configure the call as described in the Team Files Guide to access the team space. With the Python SDK, you'd use the with_path_root method to set that.