<?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: How to 'operate on a team member\'s Dropbox' in python in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-operate-on-a-team-member-s-Dropbox-in-python/m-p/612223#M28304</link>
    <description>&lt;P&gt;Ok so it seems this is a DropboxTeams thing, so maybe this is closer:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;dbx_t = dropbox.DropboxTeam(TOKEN)&lt;BR /&gt;dbx_t_as_user = dbx_t.as_user(&lt;SPAN&gt;"dbid:&amp;lt;string&amp;gt;"&lt;/SPAN&gt;)&lt;BR /&gt;&lt;SPAN&gt;response &lt;/SPAN&gt;= dbx_t_as_user.files_list_folder(&lt;SPAN&gt;''&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;But a new error:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;'Error in call to API function "files/list_folder": Invalid select user id format'&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 27 Jul 2022 04:31:43 GMT</pubDate>
    <dc:creator>TheWhistler1967</dc:creator>
    <dc:date>2022-07-27T04:31:43Z</dc:date>
    <item>
      <title>How to 'operate on a team member\'s Dropbox' in python</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-operate-on-a-team-member-s-Dropbox-in-python/m-p/612220#M28303</link>
      <description>&lt;P&gt;Error:&lt;/P&gt;
&lt;P&gt;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&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Code:&lt;/P&gt;
&lt;PRE&gt;dbx = dropbox.Dropbox(TOKEN)&lt;BR /&gt;response = dbx.files_list_folder(&lt;SPAN&gt;path&lt;/SPAN&gt;=&lt;SPAN&gt;''&lt;/SPAN&gt;&lt;SPAN&gt;,  &lt;/SPAN&gt;&lt;SPAN&gt;recursive&lt;/SPAN&gt;=&lt;SPAN&gt;True&lt;/SPAN&gt;)&lt;BR /&gt;&lt;SPAN&gt;print&lt;/SPAN&gt;(response)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is the actual python code for this? I have the users dbid for use to operate on. But I cannot find the actual python syntax for this.&lt;BR /&gt;What lines do I need to add to the above code to get a print for this.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2022 00:46:39 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-operate-on-a-team-member-s-Dropbox-in-python/m-p/612220#M28303</guid>
      <dc:creator>TheWhistler1967</dc:creator>
      <dc:date>2022-07-28T00:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to 'operate on a team member\'s Dropbox' in python</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-operate-on-a-team-member-s-Dropbox-in-python/m-p/612223#M28304</link>
      <description>&lt;P&gt;Ok so it seems this is a DropboxTeams thing, so maybe this is closer:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;dbx_t = dropbox.DropboxTeam(TOKEN)&lt;BR /&gt;dbx_t_as_user = dbx_t.as_user(&lt;SPAN&gt;"dbid:&amp;lt;string&amp;gt;"&lt;/SPAN&gt;)&lt;BR /&gt;&lt;SPAN&gt;response &lt;/SPAN&gt;= dbx_t_as_user.files_list_folder(&lt;SPAN&gt;''&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;But a new error:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;'Error in call to API function "files/list_folder": Invalid select user id format'&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2022 04:31:43 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-operate-on-a-team-member-s-Dropbox-in-python/m-p/612223#M28304</guid>
      <dc:creator>TheWhistler1967</dc:creator>
      <dc:date>2022-07-27T04:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to 'operate on a team member\'s Dropbox' in python</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-operate-on-a-team-member-s-Dropbox-in-python/m-p/612294#M28306</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1524408"&gt;@TheWhistler1967&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Ok so it seems this is a DropboxTeams thing, so maybe this is closer:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;...&lt;BR /&gt;dbx_t_as_user = dbx_t.as_user(&lt;SPAN&gt;"dbid:&amp;lt;string&amp;gt;"&lt;/SPAN&gt;)&lt;BR /&gt;...&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;...&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/1524408"&gt;@TheWhistler1967&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;As far as I can see, you are trying use your account id (starts "dbid") as a team member id (starts "dbmid"). 🤫 Select the correct identifier. &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>Wed, 27 Jul 2022 12:35:35 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-operate-on-a-team-member-s-Dropbox-in-python/m-p/612294#M28306</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-07-27T12:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to 'operate on a team member\'s Dropbox' in python</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-operate-on-a-team-member-s-Dropbox-in-python/m-p/612314#M28309</link>
      <description>&lt;P&gt;That's correct, for accessing user endpoints using a team-linked access token like this, you'll need to specify the member to operate on. You can find &lt;A href="https://www.dropbox.com/developers/documentation/http/teams#teams-member-file-access" target="_blank"&gt;the documentation for this here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the Python SDK, you can use &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/api/dropbox.html#dropbox.dropbox_client.DropboxTeam.as_user" target="_blank"&gt;as_user&lt;/A&gt; (or &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/api/dropbox.html#dropbox.dropbox_client.DropboxTeam.as_admin" target="_blank"&gt;as_admin&lt;/A&gt;) for this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;These require a team member ID, which starts with "dbmid:", not an account ID, which starts with "dbid:". You can get team member IDs from a number of places 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;</description>
      <pubDate>Wed, 27 Jul 2022 13:20:24 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-operate-on-a-team-member-s-Dropbox-in-python/m-p/612314#M28309</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-07-27T13:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to 'operate on a team member\'s Dropbox' in python</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-operate-on-a-team-member-s-Dropbox-in-python/m-p/612421#M28313</link>
      <description>&lt;P&gt;Thanks - this was exactly correct. Marked other one as solution. Cheers.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2022 20:41:59 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-operate-on-a-team-member-s-Dropbox-in-python/m-p/612421#M28313</guid>
      <dc:creator>TheWhistler1967</dc:creator>
      <dc:date>2022-07-27T20:41:59Z</dc:date>
    </item>
  </channel>
</rss>

