<?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: Can't Access Business Account Root Folders from Dropbox Client App in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-Access-Business-Account-Root-Folders-from-Dropbox-Client/m-p/637740#M29388</link>
    <description>&lt;P&gt;You are 100% correct. Been beating my head against the wall for hours and it was that easy. For anyone coming across this, the corrective steps were:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Call &lt;STRONG&gt;users/get_current_account&lt;/STRONG&gt; and grab the "root_namespace_id" value from the account result.&lt;/LI&gt;&lt;LI&gt;Add a &lt;SPAN&gt;Dropbox-API-Path-Root&lt;/SPAN&gt; header with a value&amp;nbsp;&lt;SPAN&gt;{".tag": "namespace_id", "namespace_id": "&amp;lt;that value&amp;gt;"&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt; to the&amp;nbsp;&lt;STRONG&gt;files/list_folder&lt;/STRONG&gt; call.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;From there you can adjust the path value as needed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For those using the SDK, here's an example (.net):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;using (DropboxClient client = new DropboxClient(&amp;lt;accessToken&amp;gt;).WithPathRoot(new Dropbox.Api.Common.PathRoot.NamespaceId(&amp;lt;root path id&amp;gt;)))&lt;BR /&gt;{&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks so much for your help and quick reply!&lt;/P&gt;</description>
    <pubDate>Fri, 18 Nov 2022 19:46:58 GMT</pubDate>
    <dc:creator>Faulk</dc:creator>
    <dc:date>2022-11-18T19:46:58Z</dc:date>
    <item>
      <title>Can't Access Business Account Root Folders from Dropbox Client App</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-Access-Business-Account-Root-Folders-from-Dropbox-Client/m-p/637714#M29380</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Our company has a business advanced account, with members managed through Azure AD. At the root are two folders: one for my account, "Faulk", and another intended to house externally managed documents, call it "Work".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Our intention is to manage the contents of Work externally through the API, uploading, downloading, and deleting files in a folder structure, authenticating using a Dropbox App rather than an Azure account.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I created an app in the App Console, gave it scope permissions (account_info.read, files.metadata.read, files.content.write, files.content.write, sharing.write, sharing.read), connected the app using &lt;STRONG&gt;oauth2/authorize&lt;/STRONG&gt; including the client id and "token_access_type=offline&amp;amp;response_type=code". I then called &lt;STRONG&gt;oauth2/token&lt;/STRONG&gt;, passing the code, and received an access token.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With this access token, &lt;STRONG&gt;files/list_folder&lt;/STRONG&gt; only returns the contents of the Faulk folder.&lt;/P&gt;
&lt;P&gt;Calling &lt;STRONG&gt;sharing/list_folders&lt;/STRONG&gt; return Work, Faulk, and the contents of Faulk.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Adding the shared link for Work to &lt;STRONG&gt;files/list_folder&lt;/STRONG&gt; returns the contents of Work, but doesn't include shared links or id's I can use to manage that content. Altering the "path" value didn't work either.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Other details: my account is an admin, I've tried adding Team scopes to the app with no success (using Dropbox-API-Select-User or Dropbox-API-Select-Admin produced the same results when calling &lt;STRONG&gt;files/list_folder&lt;/STRONG&gt;), calling &lt;STRONG&gt;sharing/mount_folder&lt;/STRONG&gt; for Work tells me "This shared folder has already been added."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My questions are:&lt;/P&gt;
&lt;P&gt;Is it possible to view/manage files and folders within the parent business account using a Dropbox app in this manner?&lt;/P&gt;
&lt;P&gt;Should the app have been created under a different account?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I feel like this issue is similar to this post: &lt;A href="https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-list-of-files-in-folders-inside-shared-folders/td-p/278501," target="_blank" rel="noopener"&gt;https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-list-of-files-in-folders-inside-shared-folders/td-p/278501,&lt;/A&gt; but the solution in their case concerned sharing across different dropbox accounts, not accessing different folders within a parent business account.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks very much for any help you can offer!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit: as an addendum the Faulk folder shows as a Shared folder type, while the Work folder shows as a Team folder type. Also, when using Dropbox-API-Select-Admin with any of the other admin's accounts &lt;STRONG&gt;files/list_folder&lt;/STRONG&gt; returns no results (they do not have personal folders).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit2: complicating things possibly: prior to my company setting up the business account I had set up a personal account using my company email address. Once the business account was created, the personal account was merged into the business account, which is where the Faulk folder came from.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2022 18:21:05 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-Access-Business-Account-Root-Folders-from-Dropbox-Client/m-p/637714#M29380</guid>
      <dc:creator>Faulk</dc:creator>
      <dc:date>2022-11-18T18:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Access Business Account Root Folders from Dropbox Client App</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-Access-Business-Account-Root-Folders-from-Dropbox-Client/m-p/637732#M29382</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1592719"&gt;@Faulk&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;By default the point assumed to be root for API access is users home folder (i.e. your Faulk folder), not the account root. If you want to change this root to any other namespace (including to account root), you need to use &lt;A title="Path Root Header Modes" href="https://www.dropbox.com/developers/reference/path-root-header-modes" target="_blank" rel="noopener"&gt;Dropbox-API-Path-Root header&lt;/A&gt;. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2022 18:39:23 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-Access-Business-Account-Root-Folders-from-Dropbox-Client/m-p/637732#M29382</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-11-18T18:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Access Business Account Root Folders from Dropbox Client App</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-Access-Business-Account-Root-Folders-from-Dropbox-Client/m-p/637739#M29387</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1592719"&gt;@Faulk&lt;/a&gt;&amp;nbsp;Здравко is right; it sounds like you want to access the "&lt;A href="https://help.dropbox.com/organize/team-space-overview" target="_blank"&gt;team space&lt;/A&gt;". You can certainly do so from any account that has access to the team space, but by default, API calls operate in the "member folder" of the connected account, not the team space. You can configure API calls to operate in the&amp;nbsp;team space instead though. To do so, you'll need to set the "Dropbox-API-Path-Root" header. You can find information on this in &lt;A href="https://developers.dropbox.com/dbx-team-files-guide" target="_blank" rel="noopener noreferrer"&gt;the Team Files Guide&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2022 18:49:16 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-Access-Business-Account-Root-Folders-from-Dropbox-Client/m-p/637739#M29387</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-11-18T18:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Access Business Account Root Folders from Dropbox Client App</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-Access-Business-Account-Root-Folders-from-Dropbox-Client/m-p/637740#M29388</link>
      <description>&lt;P&gt;You are 100% correct. Been beating my head against the wall for hours and it was that easy. For anyone coming across this, the corrective steps were:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Call &lt;STRONG&gt;users/get_current_account&lt;/STRONG&gt; and grab the "root_namespace_id" value from the account result.&lt;/LI&gt;&lt;LI&gt;Add a &lt;SPAN&gt;Dropbox-API-Path-Root&lt;/SPAN&gt; header with a value&amp;nbsp;&lt;SPAN&gt;{".tag": "namespace_id", "namespace_id": "&amp;lt;that value&amp;gt;"&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt; to the&amp;nbsp;&lt;STRONG&gt;files/list_folder&lt;/STRONG&gt; call.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;From there you can adjust the path value as needed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For those using the SDK, here's an example (.net):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;using (DropboxClient client = new DropboxClient(&amp;lt;accessToken&amp;gt;).WithPathRoot(new Dropbox.Api.Common.PathRoot.NamespaceId(&amp;lt;root path id&amp;gt;)))&lt;BR /&gt;{&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks so much for your help and quick reply!&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2022 19:46:58 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-Access-Business-Account-Root-Folders-from-Dropbox-Client/m-p/637740#M29388</guid>
      <dc:creator>Faulk</dc:creator>
      <dc:date>2022-11-18T19:46:58Z</dc:date>
    </item>
  </channel>
</rss>

