<?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: API V2 Access team folders of bussines plan with Folder/Files operations in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-V2-Access-team-folders-of-bussines-plan-with-Folder-Files/m-p/585425#M27255</link>
    <description>&lt;P&gt;Are there constants for the&amp;nbsp;&lt;SPAN&gt;root_namespace_id and&amp;nbsp;home_namespace_id? Seems unnecessary&amp;nbsp;to have to call the&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;api to retrieve the namespace IDs. Can you use a constant for the these IDs given the current user? For example:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;PRE&gt;dbx = dropbox.Dropbox(TOKEN).with_path_root(dropbox.common.PathRoot.namespace_id(".root"))&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 22 Mar 2022 17:11:51 GMT</pubDate>
    <dc:creator>steve_r</dc:creator>
    <dc:date>2022-03-22T17:11:51Z</dc:date>
    <item>
      <title>API V2 Access team folders of bussines plan with Folder/Files operations</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-V2-Access-team-folders-of-bussines-plan-with-Folder-Files/m-p/268044#M15778</link>
      <description>&lt;P&gt;&amp;nbsp;i&amp;nbsp;want to acces&amp;nbsp;team folders using application user api for list,create folders, upload and download,etc.. and i'm going crazy.&lt;/P&gt;&lt;P&gt;In API Explorer&amp;nbsp; with function "list_folder",&amp;nbsp; only can acces user home folder,&amp;nbsp;y try put in path the id of shared id,or namespace ns; does not work either,&lt;/P&gt;&lt;P&gt;The only way can view team folder stuff is put the shared link root, but&amp;nbsp;the result of folders&amp;nbsp;not contains the field path o&amp;nbsp;lower_path ,that needs to files/folder operations like create folders/download/upload files etc..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also try create folders / upload whith namespace ns: and return no write acces,the team folders have editor permissions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't see any function to upload or create folders into shared folders.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see this folders are mounted and can't unmounted it , theoricaly&amp;nbsp;they would have to appear like shared folders when are mounted&amp;nbsp; when use function "list_folder"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can&amp;nbsp;help me?&lt;/P&gt;&lt;P&gt;thnks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:14:50 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-V2-Access-team-folders-of-bussines-plan-with-Folder-Files/m-p/268044#M15778</guid>
      <dc:creator>OLR_A</dc:creator>
      <dc:date>2019-05-29T09:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: API V2 Access team folders of bussines plan with Folder/Files operations</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-V2-Access-team-folders-of-bussines-plan-with-Folder-Files/m-p/268085#M15781</link>
      <description>&lt;P&gt;It sounds like you're using a Business team with &lt;A href="https://www.dropbox.com/help/business/team-space-overview" target="_blank"&gt;the new team space and member folders configuration&lt;/A&gt; that some teams have access to.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That being the case, you'll need to specify the team folder specifically when making API calls to access its contents, for example, by supplying the 'Dropbox-API-Path-Root' header. You can find more information on that here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/reference/namespace-guide" target="_blank"&gt;https://www.dropbox.com/developers/reference/namespace-guide&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Dropbox API Explorer is built for the older configuration, but we're working on updating the API and SDK support and documentation to support the new one. That's not quite ready yet though, so unfortunately there isn't a good way to use the API Explorer for this right now, but you can run it outside the of Explorer. Apologies for the inconvenience!&lt;/P&gt;</description>
      <pubDate>Fri, 09 Mar 2018 15:39:04 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-V2-Access-team-folders-of-bussines-plan-with-Folder-Files/m-p/268085#M15781</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-03-09T15:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: API V2 Access team folders of bussines plan with Folder/Files operations</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-V2-Access-team-folders-of-bussines-plan-with-Folder-Files/m-p/336422#M19587</link>
      <description>&lt;P&gt;HI Greg,&lt;/P&gt;&lt;P&gt;I have the same problem of accessing team shared folder.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to follow the namespace &lt;A href="https://www.dropbox.com/developers/reference/namespace-guide" target="_self"&gt;guide&lt;/A&gt;. I am using python. First get namespace ids:&lt;/P&gt;&lt;PRE&gt;"root_namespace_id": "4345996448",
"home_namespace_id": "4770419568",&lt;/PRE&gt;&lt;P&gt;Then create dbx object with a header:&lt;/P&gt;&lt;PRE&gt;header = {'Dropbox-API-Path-Root': {".tag": "namespace_id", "namespace_id": "4345996448"}}
dbx = dropbox.Dropbox(TOKEN, header)&lt;/PRE&gt;&lt;P&gt;But when do a&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;dbx.files_list_folder('')&lt;/PRE&gt;&lt;P&gt;still showing my user's home dir, not team shared one. If I add 'ns:4345996448' to PATH, it would fail.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you help me with it? Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2019 22:09:06 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-V2-Access-team-folders-of-bussines-plan-with-Folder-Files/m-p/336422#M19587</guid>
      <dc:creator>tianhong</dc:creator>
      <dc:date>2019-03-28T22:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: API V2 Access team folders of bussines plan with Folder/Files operations</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-V2-Access-team-folders-of-bussines-plan-with-Folder-Files/m-p/336540#M19595</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1064328"&gt;@tianhong&lt;/a&gt;&amp;nbsp;To set the&amp;nbsp;'Dropbox-API-Path-Root' header, you should instead use &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/api/dropbox.html#dropbox.dropbox.Dropbox.with_path_root" target="_self"&gt;the provided 'Dropbox.with_path_root' method&lt;/A&gt;, like this:&lt;/P&gt;
&lt;PRE&gt;dbx = dropbox.Dropbox(TOKEN).with_path_root(dropbox.common.PathRoot.namespace_id("1990815600"))
dbx.files_list_folder('')&lt;/PRE&gt;</description>
      <pubDate>Fri, 29 Mar 2019 15:38:21 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-V2-Access-team-folders-of-bussines-plan-with-Folder-Files/m-p/336540#M19595</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-03-29T15:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: API V2 Access team folders of bussines plan with Folder/Files operations</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-V2-Access-team-folders-of-bussines-plan-with-Folder-Files/m-p/336676#M19600</link>
      <description>&lt;P&gt;Thanks Greg! It works.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am just wondering how to search these kinds of information in the documentation. I tried but failed. I don't think asking questions here is an efficient way, although your help is great.&lt;/P&gt;</description>
      <pubDate>Sat, 30 Mar 2019 14:35:15 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-V2-Access-team-folders-of-bussines-plan-with-Folder-Files/m-p/336676#M19600</guid>
      <dc:creator>tianhong</dc:creator>
      <dc:date>2019-03-30T14:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: API V2 Access team folders of bussines plan with Folder/Files operations</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-V2-Access-team-folders-of-bussines-plan-with-Folder-Files/m-p/337011#M19614</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1064328"&gt;@tianhong&lt;/a&gt;&amp;nbsp;Thanks for the feedback! The &lt;A href="https://github.com/dropbox/dropbox-sdk-python" target="_self"&gt;documentation for the Python SDK&lt;/A&gt; is linked from &lt;A href="https://github.com/dropbox/dropbox-sdk-python" target="_self"&gt;the SDK's readme&lt;/A&gt;, and all of the options for the `Dropbox` class can be found on &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/api/dropbox.html" target="_self"&gt;this `Dropbox` documentation page&lt;/A&gt; in particular. I certainly understand how that may not be very discoverable though, so we'll think about ways to make that better.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2019 19:54:40 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-V2-Access-team-folders-of-bussines-plan-with-Folder-Files/m-p/337011#M19614</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-04-01T19:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: API V2 Access team folders of bussines plan with Folder/Files operations</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-V2-Access-team-folders-of-bussines-plan-with-Folder-Files/m-p/498097#M24773</link>
      <description>&lt;P&gt;Hi Greg, when I use this with the shared folders namespace ID :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;dbx = dropbox.Dropbox(token).with_path_root(dropbox.common.PathRoot.namespace_id("6951349920"))&lt;BR /&gt;dbx.files_list_folder('')&lt;/PRE&gt;&lt;P&gt;I get the following error:&lt;/P&gt;&lt;PRE&gt;BadInputError('1cac57bc6ffa43f2ab66041af9f4dec7', 'Error in call to API function "files/list_folder": This API function operates on a single Dropbox account, but the OAuth 2 access token you provided is for an entire Dropbox Business team.  Since your API app key has team member file access permissions, you can operate on a team member\'s Dropbox by providing the "Dropbox-API-Select-User" HTTP header or "select_user" URL parameter to specify the exact user &amp;lt;https://www.dropbox.com/developers/documentation/http/teams&amp;gt;.')&lt;/PRE&gt;&lt;P&gt;I do not see in the documentation how to set the "select_user" or "Dropbox-API-Select-User" parameters in the python API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When getting the member ID, would you use something like:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;```&lt;/P&gt;&lt;P&gt;dbx = dropbox.DropboxTeam(token)&lt;BR /&gt;members = dbx.team_members_list()&lt;BR /&gt;member_id = members.members[0].profile.team_member_id&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;</description>
      <pubDate>Sat, 20 Feb 2021 02:47:08 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-V2-Access-team-folders-of-bussines-plan-with-Folder-Files/m-p/498097#M24773</guid>
      <dc:creator>tomkr</dc:creator>
      <dc:date>2021-02-20T02:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: API V2 Access team folders of bussines plan with Folder/Files operations</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-V2-Access-team-folders-of-bussines-plan-with-Folder-Files/m-p/498100#M24774</link>
      <description>&lt;P&gt;As a quick update, when I set the header with:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;dbx_team = dropbox.DropboxTeam(token)&lt;BR /&gt;members = dbx_team.team_members_list()&lt;BR /&gt;member_id = members.members[0].profile.team_member_id&lt;/P&gt;&lt;P&gt;header = {"Dropbox-API-Select-User": member_id}&lt;/P&gt;&lt;P&gt;dbx = dropbox.Dropbox(token, header).with_path_root(dropbox.common.PathRoot.namespace_id("8378003952"))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get the same error.&lt;/P&gt;</description>
      <pubDate>Sat, 20 Feb 2021 03:23:13 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-V2-Access-team-folders-of-bussines-plan-with-Folder-Files/m-p/498100#M24774</guid>
      <dc:creator>tomkr</dc:creator>
      <dc:date>2021-02-20T03:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: API V2 Access team folders of bussines plan with Folder/Files operations</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-V2-Access-team-folders-of-bussines-plan-with-Folder-Files/m-p/498709#M24782</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1414293"&gt;@tomkr&lt;/a&gt;&amp;nbsp;&lt;SPAN&gt;This error message you're getting is referring to specifying what account on the Business team to operate on behalf of. For reference, when using any "team scopes", the resulting access token is connected to an entire Dropbox Business team, not an individual account. So, when using a team-scoped access token to access user-specific endpoints, such as&amp;nbsp;&lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/api/dropbox.html#dropbox.dropbox.Dropbox.files_list_folder" target="_self"&gt;files_list_folder&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;, you will need to specify which member of the team you want to operate on behalf of.&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To do this, you'd need to specify the 'Dropbox-API-Select-User' header. The value should be the 'team_member_id'&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;for whichever member you wish to act on behalf of, such as returned by&amp;nbsp;&lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/api/dropbox.html#dropbox.dropbox.DropboxTeam.team_members_list" target="_self"&gt;team_members_list&lt;/A&gt;/&lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/api/dropbox.html#dropbox.dropbox.DropboxTeam.team_members_list_continue" target="_self"&gt;team_members_list_continue&lt;/A&gt;, or&amp;nbsp;&lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/api/dropbox.html#dropbox.dropbox.DropboxTeam.team_members_get_info" target="_self"&gt;team_members_get_info&lt;/A&gt;, etc&lt;/SPAN&gt;&lt;SPAN&gt;. In the Python SDK, you can set the header using&amp;nbsp;&lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/api/dropbox.html#dropbox.dropbox.DropboxTeam.as_user" target="_self"&gt;DropboxTeam.as_user&lt;/A&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alternatively, if you just want to connect to a particular account, you can disable any team scopes and get a new access token without them. The access token without the team scopes will be specific to the particular account (Business or not) and so will not require the additional header. You can find more information on scopes in&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.dropbox.com/lp/developers/reference/oauth-guide" rel="noreferrer" target="_blank"&gt;the OAuth Guide&lt;/A&gt;&lt;SPAN&gt;. If you don't need to call any team endpoints (e.g., if you just need to call file endpoints, such as&amp;nbsp;&lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/api/dropbox.html#dropbox.dropbox.Dropbox.files_list_folder" target="_self"&gt;files_list_folder&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;), I recommend this solution instead for simplicity and security.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 15:46:44 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-V2-Access-team-folders-of-bussines-plan-with-Folder-Files/m-p/498709#M24782</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-02-22T15:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: API V2 Access team folders of bussines plan with Folder/Files operations</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-V2-Access-team-folders-of-bussines-plan-with-Folder-Files/m-p/585425#M27255</link>
      <description>&lt;P&gt;Are there constants for the&amp;nbsp;&lt;SPAN&gt;root_namespace_id and&amp;nbsp;home_namespace_id? Seems unnecessary&amp;nbsp;to have to call the&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;api to retrieve the namespace IDs. Can you use a constant for the these IDs given the current user? For example:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;PRE&gt;dbx = dropbox.Dropbox(TOKEN).with_path_root(dropbox.common.PathRoot.namespace_id(".root"))&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 22 Mar 2022 17:11:51 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-V2-Access-team-folders-of-bussines-plan-with-Folder-Files/m-p/585425#M27255</guid>
      <dc:creator>steve_r</dc:creator>
      <dc:date>2022-03-22T17:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: API V2 Access team folders of bussines plan with Folder/Files operations</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-V2-Access-team-folders-of-bussines-plan-with-Folder-Files/m-p/585476#M27258</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1518658"&gt;@steve_r&lt;/a&gt; No, the Dropbox API doesn't offer a constant for the root like that, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. Note that the root namespace ID can change though, so while you can cache the value so you don't have to look it up each time, be aware you can get an error if/when it does change, in which case you would look up the new one. Refer to &lt;A href="https://www.dropbox.com/developers/reference/path-root-header-modes" target="_self"&gt;the documentation&lt;/A&gt; for more information.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 19:50:53 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-V2-Access-team-folders-of-bussines-plan-with-Folder-Files/m-p/585476#M27258</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-03-22T19:50:53Z</dc:date>
    </item>
  </channel>
</rss>

