<?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 How can I retrieve all my folders shared with teams in Python? in Discuss Dropbox Developer &amp; API</title>
    <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-can-I-retrieve-all-my-folders-shared-with-teams-in-Python/m-p/669897#M3279</link>
    <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to retrieve all the folders inside my Dropbox account. In the first approach I'm just able to retrieve the info from something like my "home folder" but there is other folders that I created as the admin that are not being showed calling '&lt;SPAN&gt;files_list_folder()' function.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm instantiating my DB account as&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;dbx = dropbox.Dropbox(oauth2_refresh_token=REFRESH_TOKEN, app_key=APP_KEY)&lt;/LI-CODE&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;&lt;SPAN&gt;I tried to use DropboxTeam like that:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;dbx = dropbox.DropboxTeam(oauth2_refresh_token=REFRESH_TOKEN, app_key=APP_KEY).as_admin(ADMIN_ID)
dbx.files_list_folder("")&lt;/LI-CODE&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;&lt;SPAN&gt;But I'm getting this error:&amp;nbsp; &lt;EM&gt;'dropbox.exceptions.BadInputError: BadInputError('a5c6fcd46470407982efeb801ea9c3ac', 'Error in call to API function "files/list_folder": Unexpected select user header. Your app does not have permission to use this feature')'&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any solutions to this?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Mar 2023 14:18:46 GMT</pubDate>
    <dc:creator>AlvaroHuertas</dc:creator>
    <dc:date>2023-03-21T14:18:46Z</dc:date>
    <item>
      <title>How can I retrieve all my folders shared with teams in Python?</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-can-I-retrieve-all-my-folders-shared-with-teams-in-Python/m-p/669897#M3279</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to retrieve all the folders inside my Dropbox account. In the first approach I'm just able to retrieve the info from something like my "home folder" but there is other folders that I created as the admin that are not being showed calling '&lt;SPAN&gt;files_list_folder()' function.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm instantiating my DB account as&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;dbx = dropbox.Dropbox(oauth2_refresh_token=REFRESH_TOKEN, app_key=APP_KEY)&lt;/LI-CODE&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;&lt;SPAN&gt;I tried to use DropboxTeam like that:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;dbx = dropbox.DropboxTeam(oauth2_refresh_token=REFRESH_TOKEN, app_key=APP_KEY).as_admin(ADMIN_ID)
dbx.files_list_folder("")&lt;/LI-CODE&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;&lt;SPAN&gt;But I'm getting this error:&amp;nbsp; &lt;EM&gt;'dropbox.exceptions.BadInputError: BadInputError('a5c6fcd46470407982efeb801ea9c3ac', 'Error in call to API function "files/list_folder": Unexpected select user header. Your app does not have permission to use this feature')'&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any solutions to this?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 14:18:46 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-can-I-retrieve-all-my-folders-shared-with-teams-in-Python/m-p/669897#M3279</guid>
      <dc:creator>AlvaroHuertas</dc:creator>
      <dc:date>2023-03-21T14:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: How can I retrieve all my folders shared with teams in Python?</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-can-I-retrieve-all-my-folders-shared-with-teams-in-Python/m-p/669932#M3281</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1614398"&gt;@AlvaroHuertas&lt;/a&gt;, have you selected some team scope for your application&amp;nbsp;&lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@9AD39CA637682E9616FBE31CDAF1B6C4/emoticons/1f914.png" alt=":thinking_face:" title=":thinking_face:" /&gt; or not yet? Without team scope you can't use team related features even when the API call, you're using, doesn't require such scopes! In such cases the call will be rooted to the home scope and you can't change this. Keep in mind that when you change some application scope, you need to authenticate your application anew (such changes are NOT retroactive) - OAuth anew.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 15:50:22 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-can-I-retrieve-all-my-folders-shared-with-teams-in-Python/m-p/669932#M3281</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2023-03-21T15:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: How can I retrieve all my folders shared with teams in Python?</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-can-I-retrieve-all-my-folders-shared-with-teams-in-Python/m-p/672968#M3295</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1614398"&gt;@AlvaroHuertas&lt;/a&gt; Looking at the error and code, as Здравко said, it looks like you're trying to use a feature that your app is not actually configured for. For example, if your app is not team-linked, you wouldn't use as_admin.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And for information on how to access the team space, check out &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>Thu, 30 Mar 2023 17:35:45 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-can-I-retrieve-all-my-folders-shared-with-teams-in-Python/m-p/672968#M3295</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-03-30T17:35:45Z</dc:date>
    </item>
  </channel>
</rss>

