<?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: Get User ID from Chooser API in Discuss Dropbox Developer &amp; API</title>
    <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Get-User-ID-from-Chooser-API/m-p/362328#M745</link>
    <description>&lt;P&gt;No, unfortunately there isn't a way to get the account ID from the Chooser like this,&amp;nbsp;but I'll pass this along as a feature request. I'm not currently aware of any plans to implement this though.&lt;/P&gt;</description>
    <pubDate>Wed, 28 Aug 2019 19:06:29 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2019-08-28T19:06:29Z</dc:date>
    <item>
      <title>Get User ID from Chooser API</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Get-User-ID-from-Chooser-API/m-p/362322#M744</link>
      <description>&lt;P&gt;In my app, I am using the OAuth properly and am able to interact with a user's file (read, write etc). My flow is currently:&lt;/P&gt;
&lt;P&gt;1. Get access_token by having the user allow the app access to their account and calling this endpoint&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;https://api.dropbox.com/oauth2/token&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;2. Have user select files from the Chooser&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. Use the access_token and file information to perform the necessary operations&lt;/P&gt;
&lt;P&gt;However, now there is a requirement to support multiple dropbox accounts per user. I can once again use the token endpoint to get the access_token for each account, but I am lost on how to get the account ID when the user interacts with the chooser so I can relate each file with the proper access_token.&amp;nbsp; Is there an endpoint or option on the chooser to get the account ID on what the logged in account is when the user opens the Chooser?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2019 10:32:44 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Get-User-ID-from-Chooser-API/m-p/362322#M744</guid>
      <dc:creator>asharma327</dc:creator>
      <dc:date>2019-09-10T10:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: Get User ID from Chooser API</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Get-User-ID-from-Chooser-API/m-p/362328#M745</link>
      <description>&lt;P&gt;No, unfortunately there isn't a way to get the account ID from the Chooser like this,&amp;nbsp;but I'll pass this along as a feature request. I'm not currently aware of any plans to implement this though.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2019 19:06:29 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Get-User-ID-from-Chooser-API/m-p/362328#M745</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-08-28T19:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: Get User ID from Chooser API</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Get-User-ID-from-Chooser-API/m-p/362333#M746</link>
      <description>&lt;P&gt;Ah shucks &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@B0F70D28791EB05FA3EA0C3BDDF08EE3/emoticons/1f61e.png" alt=":disappointed_face:" title=":disappointed_face:" /&gt;&lt;/P&gt;&lt;P&gt;Per chance, is there any way to get the user info from the file info? For example, maybe get the account ID from the file ID or file link from another API endpoint?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2019 19:43:42 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Get-User-ID-from-Chooser-API/m-p/362333#M746</guid>
      <dc:creator>asharma327</dc:creator>
      <dc:date>2019-08-28T19:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: Get User ID from Chooser API</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Get-User-ID-from-Chooser-API/m-p/362337#M747</link>
      <description>&lt;P&gt;No, I'm afraid there isn't anything quite like that either. (The Chooser wasn't originally designed to be used together with the API, so there isn't much interoperability.)&lt;/P&gt;
&lt;P&gt;There are a few ways you can try, though they're not ideal and won't be 100% reliable for this:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Once you have the file ID, try calling&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-get_metadata" target="_self"&gt;/2/files/get_metadata&lt;/A&gt; with the file ID using each of the access tokens you have. If the account has access to the file, you'll get the metadata back. If not, you'll get an error.&lt;/LI&gt;
&lt;LI&gt;Once you have the shared link, try calling&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#sharing-get_shared_link_metadata" target="_self"&gt;/2/sharing/get_shared_link_metadata&lt;/A&gt; with the shared link using each of the access tokens you have. If the link owner is a team member of the same team as the connected account for that access token, `team_member_info` will be set.&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Wed, 28 Aug 2019 20:19:49 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Get-User-ID-from-Chooser-API/m-p/362337#M747</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-08-28T20:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: Get User ID from Chooser API</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Get-User-ID-from-Chooser-API/m-p/362357#M748</link>
      <description>&lt;P&gt;Gotcha, I was thinking of doing something along those lines. Thanks Greg&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2019 22:06:31 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Get-User-ID-from-Chooser-API/m-p/362357#M748</guid>
      <dc:creator>asharma327</dc:creator>
      <dc:date>2019-08-28T22:06:31Z</dc:date>
    </item>
  </channel>
</rss>

