<?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 provide the Dropbox-API-Select-User HTTP header with .Net API in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-provide-the-Dropbox-API-Select-User-HTTP-header-with-Net/m-p/428953#M22811</link>
    <description>&lt;P&gt;Thank you very much.&amp;nbsp; Solved my issue!&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jun 2020 18:50:47 GMT</pubDate>
    <dc:creator>BillyL</dc:creator>
    <dc:date>2020-06-11T18:50:47Z</dc:date>
    <item>
      <title>How to provide the Dropbox-API-Select-User HTTP header with .Net API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-provide-the-Dropbox-API-Select-User-HTTP-header-with-Net/m-p/428917#M22809</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have gotten my access token through the business app and am trying to make a simple request.&amp;nbsp; I also have team admin permissions with a permission type for the app as "Team member file access"&lt;/P&gt;
&lt;PRE&gt;using (var dbx = new DropboxClient(AccessToken))
{
                var full = await dbx.Users.GetCurrentAccountAsync();
}&lt;/PRE&gt;
&lt;P&gt;I get the following Error:&lt;/P&gt;
&lt;P&gt;Error in call to API function "users/get_current_account": 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;The documentation also mentions specifying a member_id of the user for which the app will run under using a custom HTTP header called&amp;nbsp;&lt;SPAN&gt;Dropbox-API-Select-User.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would first appreciate some help on how to specify this member_id through the header via .Net and then how to access shared files/Folders like "BigFolder" below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BigFolder.PNG" style="width: 999px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/16325i1A68574448859C17/image-size/large?v=v2&amp;amp;px=999" role="button" title="BigFolder.PNG" alt="BigFolder.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank You!&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jun 2020 17:53:42 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-provide-the-Dropbox-API-Select-User-HTTP-header-with-Net/m-p/428917#M22809</guid>
      <dc:creator>BillyL</dc:creator>
      <dc:date>2020-06-11T17:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to provide the Dropbox-API-Select-User HTTP header with .Net API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-provide-the-Dropbox-API-Select-User-HTTP-header-with-Net/m-p/428927#M22810</link>
      <description>&lt;P&gt;In the .NET SDK in particular, to set the "Dropbox-API-Select-User" header, you should use &lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_DropboxTeamClient_AsMember.htm" target="_self"&gt;the&amp;nbsp;DropboxTeamClient.AsMember method&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And to access the contents of the "team space", as shown in your screenshot, you should use&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_DropboxClient_WithPathRoot.htm" target="_self"&gt;the&amp;nbsp;DropboxClient.WithPathRoot method&lt;/A&gt;. Check out &lt;A href="https://www.dropbox.com/developers/reference/namespace-guide" target="_self"&gt;the Namespace Guide&lt;/A&gt; for information on how that works.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jun 2020 17:32:14 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-provide-the-Dropbox-API-Select-User-HTTP-header-with-Net/m-p/428927#M22810</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-06-11T17:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to provide the Dropbox-API-Select-User HTTP header with .Net API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-provide-the-Dropbox-API-Select-User-HTTP-header-with-Net/m-p/428953#M22811</link>
      <description>&lt;P&gt;Thank you very much.&amp;nbsp; Solved my issue!&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jun 2020 18:50:47 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-provide-the-Dropbox-API-Select-User-HTTP-header-with-Net/m-p/428953#M22811</guid>
      <dc:creator>BillyL</dc:creator>
      <dc:date>2020-06-11T18:50:47Z</dc:date>
    </item>
  </channel>
</rss>

