<?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: Getting files from a non root namespace in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-files-from-a-non-root-namespace/m-p/271813#M16108</link>
    <description>&lt;P&gt;&lt;SPAN&gt;If you have a Dropbox Business API app with the "&lt;A href="https://www.dropbox.com/developers/documentation/http/teams#teams-member-file-access" target="_self"&gt;team member file access&lt;/A&gt;" permission, using &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder" target="_self"&gt;/2/files/list_folder&lt;/A&gt; with the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Dropbox-API-Select-User&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;header and path="" and recursive=true is the right way to list the all of the contents of a user's account.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can also specify a namespace in the path value instead. Check out &lt;A href="https://www.dropbox.com/developers/reference/namespace-guide" target="_blank"&gt;the Namespace Guide&lt;/A&gt; for information on doing that.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Make sure you check the `has_more` value in the result returned by&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder" target="_self"&gt;/2/files/list_folder&lt;/A&gt;&amp;nbsp;though. If it's true, you need to call back to&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder-continue" target="_blank"&gt;/2/files/list_folder/continue&lt;/A&gt;&amp;nbsp;to get more entries.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you want, you can register for &lt;A href="https://www.dropbox.com/developers/reference/webhooks" target="_blank"&gt;webhooks&lt;/A&gt;&amp;nbsp;to get notified of changes automatically. Be sure to check out &lt;A href="https://www.dropbox.com/developers/documentation/http/teams#webhooks" target="_blank"&gt;the webhooks documentation for Business apps in particular&lt;/A&gt; too.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I'm not sure I understand your last question though. Can you clarify?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 09 Apr 2018 15:03:37 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2018-04-09T15:03:37Z</dc:date>
    <item>
      <title>Getting files from a non root namespace</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-files-from-a-non-root-namespace/m-p/271673#M16093</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;I want to be able to track all changes in all folders&lt;BR /&gt;including in namespaces that are not a root user's root folder&lt;BR /&gt;I use a team token.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;When I use /list_folder with the &lt;SPAN&gt;Dropbox-API-Select-User&lt;/SPAN&gt;&amp;nbsp;header, and path="" and recursive=true&lt;BR /&gt;I only get the root folder for that user&lt;BR /&gt;I also tried this with the &lt;SPAN&gt;Dropbox-API-Select-Admin&amp;nbsp;&lt;/SPAN&gt;header but I got the admin's root folder&lt;BR /&gt;&lt;BR /&gt;And /namespaces/list&amp;nbsp;only gets the namespaces but without the folders\files inside.&lt;BR /&gt;What is the api I need to use?&lt;BR /&gt;I also want to move to push notifications, will I get push notifications on folders inside such a namespace?&lt;BR /&gt;&lt;BR /&gt;And another thing, why a user's root folder in UI and in log_events apprears as the user's name and in the list if namespaces it appears as "root"?&lt;BR /&gt;&lt;BR /&gt;Thanks you&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:14:06 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-files-from-a-non-root-namespace/m-p/271673#M16093</guid>
      <dc:creator>dochdl</dc:creator>
      <dc:date>2019-05-29T09:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: Getting files from a non root namespace</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-files-from-a-non-root-namespace/m-p/271813#M16108</link>
      <description>&lt;P&gt;&lt;SPAN&gt;If you have a Dropbox Business API app with the "&lt;A href="https://www.dropbox.com/developers/documentation/http/teams#teams-member-file-access" target="_self"&gt;team member file access&lt;/A&gt;" permission, using &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder" target="_self"&gt;/2/files/list_folder&lt;/A&gt; with the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Dropbox-API-Select-User&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;header and path="" and recursive=true is the right way to list the all of the contents of a user's account.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can also specify a namespace in the path value instead. Check out &lt;A href="https://www.dropbox.com/developers/reference/namespace-guide" target="_blank"&gt;the Namespace Guide&lt;/A&gt; for information on doing that.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Make sure you check the `has_more` value in the result returned by&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder" target="_self"&gt;/2/files/list_folder&lt;/A&gt;&amp;nbsp;though. If it's true, you need to call back to&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder-continue" target="_blank"&gt;/2/files/list_folder/continue&lt;/A&gt;&amp;nbsp;to get more entries.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you want, you can register for &lt;A href="https://www.dropbox.com/developers/reference/webhooks" target="_blank"&gt;webhooks&lt;/A&gt;&amp;nbsp;to get notified of changes automatically. Be sure to check out &lt;A href="https://www.dropbox.com/developers/documentation/http/teams#webhooks" target="_blank"&gt;the webhooks documentation for Business apps in particular&lt;/A&gt; too.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I'm not sure I understand your last question though. Can you clarify?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2018 15:03:37 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-files-from-a-non-root-namespace/m-p/271813#M16108</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-04-09T15:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: Getting files from a non root namespace</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-files-from-a-non-root-namespace/m-p/271851#M16116</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;Thanks for the answer but it doesn't work&lt;BR /&gt;I got the namespace id from&amp;nbsp;&lt;A data-reactid=".0.0.1.1.1:$namespaces/list.0" target="_blank"&gt;namespaces/list&lt;/A&gt;&lt;BR /&gt;Then I used list_files with path=ns:&amp;lt;namespace_id&amp;gt; and I fot path not found&lt;BR /&gt;&lt;BR /&gt;The question about webhooks was how will I get the notification on a change in a shared\team folder. Will I get all the ids of all users in the notification? If so, is it a must? in that case I would prefer to poll changes in those folders.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Regarding the different path issue:&lt;BR /&gt;for ex:&amp;nbsp;&lt;BR /&gt;let's say user1&amp;nbsp;adds&amp;nbsp;1 file to it's root folder&amp;nbsp;and calls it file1&lt;BR /&gt;When I ask for list_folders with path="" for user1 the path I will get for it will be '/file1'&lt;BR /&gt;but the log event for the creation of the file will give me a different path '/user1/file1'&lt;BR /&gt;why is that?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2018 19:28:38 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-files-from-a-non-root-namespace/m-p/271851#M16116</guid>
      <dc:creator>dochdl</dc:creator>
      <dc:date>2018-04-09T19:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: Getting files from a non root namespace</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-files-from-a-non-root-namespace/m-p/271868#M16129</link>
      <description>&lt;P&gt;For the issue listing the namespace by namespace ID, please share some sample code and full output so I can take a look.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, if you register a&amp;nbsp;Dropbox Business API app for team member file access notifications, you will get notified for changes to any member account. From&amp;nbsp;the documentation:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"Note that a single change to a file in a shared folder will trigger a webhook for each user that the folder is shared with (and will also show up in the /list_folder entries for each account)."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Finally, the matter of the different paths sounds like a result of&amp;nbsp;&lt;A href="https://www.dropbox.com/help/business/team-space-overview" target="_self" rel="noopener noreferrer"&gt;the new team space and member folders configuration&lt;/A&gt;. When you're using /2/files/list_folder[/continue] for a specific user, the paths are already relative to that&amp;nbsp;member's folder. When you're using the audit log, on the other hand, the paths are relative to the team space itself, so it will contain the member folder name.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2018 20:41:31 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-files-from-a-non-root-namespace/m-p/271868#M16129</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-04-09T20:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: Getting files from a non root namespace</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-files-from-a-non-root-namespace/m-p/271944#M16140</link>
      <description>&lt;P&gt;So I probably used a wrong token before&lt;BR /&gt;I did it again and now it's working, thanks!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 13:43:42 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-files-from-a-non-root-namespace/m-p/271944#M16140</guid>
      <dc:creator>dochdl</dc:creator>
      <dc:date>2018-04-10T13:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: Getting files from a non root namespace</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-files-from-a-non-root-namespace/m-p/273514#M16272</link>
      <description>So it wasn't a wrong token&lt;BR /&gt;It is working for the root directory of a user but not for other namespaces&lt;BR /&gt;for ex (from your api explorer):&lt;BR /&gt;POST /2/files/list_folder&lt;BR /&gt;Host: &lt;A href="https://api.dropboxapi.com" target="_blank"&gt;https://api.dropboxapi.com&lt;/A&gt;&lt;BR /&gt;User-Agent: api-explorer-client&lt;BR /&gt;Authorization: Bearer &amp;lt;token&amp;gt;&lt;BR /&gt;Content-Type: application/json&lt;BR /&gt;Dropbox-Api-Select-User: dbmid:AAA...Rw&lt;BR /&gt;&lt;BR /&gt;{&lt;BR /&gt;    "path": "ns:2464419056",&lt;BR /&gt;    "recursive": true&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;returns results. this namespace is a root folder for the user in the header "Dropbox-Api-Select-User" (type=team_member_folder)&lt;BR /&gt;&lt;BR /&gt;but this request returns path not found:&lt;BR /&gt;POST /2/files/list_folder&lt;BR /&gt;Host: &lt;A href="https://api.dropboxapi.com" target="_blank"&gt;https://api.dropboxapi.com&lt;/A&gt;&lt;BR /&gt;User-Agent: api-explorer-client&lt;BR /&gt;Authorization: Bearer &amp;lt;token&amp;gt;&lt;BR /&gt;Content-Type: application/json&lt;BR /&gt;Dropbox-Api-Select-User: dbmid:AAA...Rw&lt;BR /&gt;&lt;BR /&gt;{&lt;BR /&gt;    "path": "ns:2464786048",&lt;BR /&gt;    "recursive": true&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;here it is the team's shared space (type=team_folder)&lt;BR /&gt;I get the same error for the default "Marketing" namespace (type=shared_folder)&lt;BR /&gt;</description>
      <pubDate>Mon, 23 Apr 2018 07:07:01 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-files-from-a-non-root-namespace/m-p/273514#M16272</guid>
      <dc:creator>dochdl</dc:creator>
      <dc:date>2018-04-23T07:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: Getting files from a non root namespace</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-files-from-a-non-root-namespace/m-p/273516#M16273</link>
      <description>&lt;P&gt;So seems as if using Dropbox-Api-Select-Admin header solves the problem&lt;BR /&gt;However, it does not appear in your documentation&lt;BR /&gt;&lt;BR /&gt;so the answer is using this request:&lt;BR /&gt;POST /2/files/list_folder&lt;BR /&gt;Host: &lt;A href="https://api.dropboxapi.com" target="_blank"&gt;https://api.dropboxapi.com&lt;/A&gt;&lt;BR /&gt;Authorization: Bearer &amp;lt;token&amp;gt;&lt;BR /&gt;Content-Type: application/json&lt;BR /&gt;Dropbox-Api-Select-Admin: dbmid:AAA...Rw&lt;BR /&gt;&lt;BR /&gt;{&lt;BR /&gt;"path": "ns:2464786048",&lt;BR /&gt;"recursive": true&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2018 07:24:20 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-files-from-a-non-root-namespace/m-p/273516#M16273</guid>
      <dc:creator>dochdl</dc:creator>
      <dc:date>2018-04-23T07:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: Getting files from a non root namespace</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-files-from-a-non-root-namespace/m-p/273580#M16283</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/653479"&gt;@dochdl&lt;/a&gt;&amp;nbsp;for future reference, the Select-Admin header is covered in our Business Endpoints documentation under "Member file access":&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/teams#teams-member-file-access&amp;nbsp;" target="_blank"&gt;https://www.dropbox.com/developers/documentation/http/teams#teams-member-file-access&amp;nbsp;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2018 16:52:22 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-files-from-a-non-root-namespace/m-p/273580#M16283</guid>
      <dc:creator>chirstius</dc:creator>
      <dc:date>2018-04-23T16:52:22Z</dc:date>
    </item>
  </channel>
</rss>

