<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: List files for a user in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/List-files-for-a-user/m-p/620729#M28617</link>
    <description>&lt;P&gt;To list all files/folders under an account, you can use &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/api/dropbox.html#dropbox.dropbox_client.Dropbox.files_list_folder" target="_blank"&gt;files_list_folder&lt;/A&gt; and &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/api/dropbox.html#dropbox.dropbox_client.Dropbox.files_list_folder_continue" target="_blank"&gt;files_list_folder_continue&lt;/A&gt;, 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 &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/api/dropbox.html#dropbox.dropbox_client.DropboxTeam.team_namespaces_list" target="_blank"&gt;team_namespaces_list&lt;/A&gt; and &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/api/dropbox.html#dropbox.dropbox_client.DropboxTeam.team_namespaces_list_continue" target="_blank"&gt;team_namespaces_list_continue&lt;/A&gt; instead to get a list of namespaces and then list each namespace instead.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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 &lt;A href="https://developers.dropbox.com/dbx-team-files-guide" target="_blank" rel="noopener noreferrer"&gt;Team Files Guide&lt;/A&gt; to access the team space. With the Python SDK, you'd use &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/api/dropbox.html#dropbox.dropbox_client.Dropbox.with_path_root" target="_blank" rel="nofollow noopener noreferrer"&gt;the with_path_root method&lt;/A&gt; to set that.&lt;/P&gt;</description>
    <pubDate>Tue, 06 Sep 2022 13:26:48 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2022-09-06T13:26:48Z</dc:date>
    <item>
      <title>List files for a user</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/List-files-for-a-user/m-p/620448#M28595</link>
      <description>&lt;P&gt;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.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is that the best way of getting the information?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;</description>
      <pubDate>Mon, 05 Sep 2022 13:56:27 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/List-files-for-a-user/m-p/620448#M28595</guid>
      <dc:creator>JuliaNowicka</dc:creator>
      <dc:date>2022-09-05T13:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: List files for a user</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/List-files-for-a-user/m-p/620729#M28617</link>
      <description>&lt;P&gt;To list all files/folders under an account, you can use &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/api/dropbox.html#dropbox.dropbox_client.Dropbox.files_list_folder" target="_blank"&gt;files_list_folder&lt;/A&gt; and &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/api/dropbox.html#dropbox.dropbox_client.Dropbox.files_list_folder_continue" target="_blank"&gt;files_list_folder_continue&lt;/A&gt;, 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 &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/api/dropbox.html#dropbox.dropbox_client.DropboxTeam.team_namespaces_list" target="_blank"&gt;team_namespaces_list&lt;/A&gt; and &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/api/dropbox.html#dropbox.dropbox_client.DropboxTeam.team_namespaces_list_continue" target="_blank"&gt;team_namespaces_list_continue&lt;/A&gt; instead to get a list of namespaces and then list each namespace instead.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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 &lt;A href="https://developers.dropbox.com/dbx-team-files-guide" target="_blank" rel="noopener noreferrer"&gt;Team Files Guide&lt;/A&gt; to access the team space. With the Python SDK, you'd use &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/api/dropbox.html#dropbox.dropbox_client.Dropbox.with_path_root" target="_blank" rel="nofollow noopener noreferrer"&gt;the with_path_root method&lt;/A&gt; to set that.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 13:26:48 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/List-files-for-a-user/m-p/620729#M28617</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-09-06T13:26:48Z</dc:date>
    </item>
  </channel>
</rss>

