<?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: Python Teams Download file in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-Teams-Download-file/m-p/779844#M34037</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I managed to get it working using a different user.&lt;/P&gt;&lt;P&gt;With the user I was previously using, it always gives the mentioned error.&lt;/P&gt;&lt;P&gt;The user that is having problems is an admin account. Could it be related to that?&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jun 2024 10:58:49 GMT</pubDate>
    <dc:creator>gmadeira1</dc:creator>
    <dc:date>2024-06-28T10:58:49Z</dc:date>
    <item>
      <title>Python Teams Download file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-Teams-Download-file/m-p/779635#M34032</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using Dropbox teams to download a file from a team folder.&lt;/P&gt;&lt;P&gt;The application was running fine but since the changes in the teams folders organization, it stopped working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm currently trying to download the file by using the following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;dbx_team = dropbox.DropboxTeam( oauth2_refresh_token=refresh_token, app_key=APP_KEY, app_secret=APP_SECRET )&lt;/P&gt;&lt;P&gt;myuser = dbx_team.as_user('dbmid:*****************')&lt;/P&gt;&lt;P&gt;file =myuser.files_download_to_file("PATH TO STORE LOCALLY","SOURCE FILE")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I'm getting the following error:&lt;/P&gt;&lt;P&gt;BadInputError('df3e1ee38a834a5c99e916817cf00d66', 'Error in call to API function "files/download": Invalid select user id format')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you clarify how should I setup this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2024 14:06:37 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-Teams-Download-file/m-p/779635#M34032</guid>
      <dc:creator>gmadeira1</dc:creator>
      <dc:date>2024-06-27T14:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: Python Teams Download file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-Teams-Download-file/m-p/779727#M34035</link>
      <description>&lt;P&gt;That error message is indicating an issue with the member ID you supplied when specifying which team member to operate on. In this case, that would be the value you're supplying to the "as_user" method. I see you indicated you're supplying a value that starts with "dbmid:", which would be correct, but you redacted the rest of the value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please double check that you're supplying the correct value for a current member of the team there. You can get team member IDs from various methods on the API, such as &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/api/dropbox.html#dropbox.dropbox_client.DropboxTeam.team_members_get_info_v2" target="_blank"&gt;team_members_get_info_v2&lt;/A&gt;, &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/api/dropbox.html#dropbox.dropbox_client.DropboxTeam.team_members_list_v2" target="_blank"&gt;team_members_list_v2&lt;/A&gt;/&lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/api/dropbox.html#dropbox.dropbox_client.DropboxTeam.team_members_list_continue_v2" target="_blank"&gt;team_members_list_continue_v2&lt;/A&gt;, etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you're supplying a valid value, please feel free to &lt;A href="https://www.dropbox.com/developers/contact" target="_blank"&gt;open a ticket here&lt;/A&gt; and share the code with the unredacted member ID value so we can look into it for you.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2024 19:18:39 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-Teams-Download-file/m-p/779727#M34035</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2024-06-27T19:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: Python Teams Download file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-Teams-Download-file/m-p/779844#M34037</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I managed to get it working using a different user.&lt;/P&gt;&lt;P&gt;With the user I was previously using, it always gives the mentioned error.&lt;/P&gt;&lt;P&gt;The user that is having problems is an admin account. Could it be related to that?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 10:58:49 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-Teams-Download-file/m-p/779844#M34037</guid>
      <dc:creator>gmadeira1</dc:creator>
      <dc:date>2024-06-28T10:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: Python Teams Download file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-Teams-Download-file/m-p/779855#M34040</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1850604"&gt;@gmadeira1&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;... Could it be related to that?&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1850604"&gt;@gmadeira1&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;No. It could be related to where you got that id from and how. Can you clarify? Also, try forget your first (troublesome) user identifier and get it in the same way as you have done for the second. Is it still troublesome?&lt;/P&gt;&lt;P&gt;Hope this gives direction.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS: To access some team folder in shared team space, you would need to set/change your path root too. Skipping this step would restrict you to member home/private folder/namespace (something assumed when nothing else set).&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 12:07:22 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-Teams-Download-file/m-p/779855#M34040</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2024-06-28T12:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: Python Teams Download file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-Teams-Download-file/m-p/779866#M34041</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1850604"&gt;@gmadeira1&lt;/a&gt; Здравко is correct; valid team member IDs for admins should work as well, so it sounds like you had an invalid value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And for information on accessing the team space, refer to &lt;A href="https://developers.dropbox.com/dbx-team-files-guide" target="_blank"&gt;the Team Files Guide&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 13:05:02 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-Teams-Download-file/m-p/779866#M34041</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2024-06-28T13:05:02Z</dc:date>
    </item>
  </channel>
</rss>

