cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Find out how Tiffany, a Customer Experience superstar uses Dropbox to keep her family in the loop when it comes to her new baby 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: 

Download data for all users on team

Download data for all users on team

time4116
Explorer | Level 4

What is the best way to download the contents of all user folders? I've created a DropBox API application but this seems to only allow access to my content, I've also created a DropBox Buisness API (Team member file access) app to see if we can leverage that to download all of our users content. However, I can't seem to find a direct way to do it via the HTTP documentation. We are mainly looking for content that is not a part of a team or shared so we can download to a local box for analyzation. Ideally, any soultion that does not require user intervention. Any tips or pointers would be greatly appreciated!

 

 
1 Accepted Solution

Accepted Solutions

Re: Download data for all users on team

Greg-DB
Dropboxer

To download all non-team and non-shared file content from all members of a team without individual user action, you'll need a Dropbox Business API app with the "team member file access" permission. This will let you use the "Member file access" feature to access each member's account.

 

The basic outline of the code would go like this:

Alternatively, you can use /2/team/namespaces/list[/continue] instead of listing each member and then listing everything for each member.

View solution in original post

3 Replies 3

Re: Download data for all users on team

Greg-DB
Dropboxer

To download all non-team and non-shared file content from all members of a team without individual user action, you'll need a Dropbox Business API app with the "team member file access" permission. This will let you use the "Member file access" feature to access each member's account.

 

The basic outline of the code would go like this:

Alternatively, you can use /2/team/namespaces/list[/continue] instead of listing each member and then listing everything for each member.

View solution in original post

Re: Download data for all users on team

time4116
Explorer | Level 4

Thanks Greg! This is perfect.

 

It looks like the /files/download method ignores team folders as far as the ability to download or recurse.? If so, I may not need to worry about excluding folders, but Is there a way to do it via /files/list_folder?

Re: Download data for all users on team

chirstius
Dropboxer

Hey @time4116,

 

There's no direct way currently to exclude them via the initial call to /files/list_folder, but if you use /team/namespaces/list[/continue], you can filter the NamespaceMetadata that comes back on its "namespace_type" attribute. You could alternatively call /team/team_folder/list[/continue] and just use that list as a guide to filter entries from /files/list_folder[/continue]

 

Hope that helps,

 

-Chuck

Who's talking

Top contributors to this post

  • User avatar
    chirstius Dropboxer
  • User avatar
    time4116 Explorer | Level 4
  • User avatar
    Greg-DB Dropboxer
What do Dropbox user levels mean?
Need more support?