<?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 Account Id from UserInfoMembership using Team Client .NET in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-Account-Id-from-UserInfoMembership-using-Team-Client-NET/m-p/171810#M6512</link>
    <description>&lt;P&gt;That's correct. (For reference, &lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/T_Dropbox_Api_Team_Routes_TeamRoutes.htm" target="_blank" rel="nofollow noreferrer"&gt;TeamRoutes&lt;/A&gt;&amp;nbsp;contains all of the team endpoints.)&lt;/P&gt;</description>
    <pubDate>Tue, 21 Jun 2016 05:14:04 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2016-06-21T05:14:04Z</dc:date>
    <item>
      <title>Get Account Id from UserInfoMembership using Team Client .NET</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-Account-Id-from-UserInfoMembership-using-Team-Client-NET/m-p/171803#M6505</link>
      <description>&lt;P&gt;I am using a dropbox admin account and using &lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Sharing_Routes_SharingRoutes_ListFolderMembersAsync.htm" target="_blank" rel="nofollow noreferrer"&gt;ListFolderMembersAsync&lt;/A&gt;&amp;nbsp;and grabbing the &lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/T_Dropbox_Api_Sharing_UserMembershipInfo.htm" target="_blank" rel="nofollow noreferrer"&gt;UserMemberShipInfo&lt;/A&gt;&amp;nbsp;which returns &lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/T_Dropbox_Api_Sharing_UserInfo.htm" target="_blank" rel="nofollow noreferrer"&gt;UserInfo&lt;/A&gt;. When I get this data returned some of the accounts have &lt;STRONG&gt;&lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/P_Dropbox_Api_Sharing_UserInfo_TeamMemberId.htm" rel="nofollow noreferrer" target="_blank"&gt;TeamMemberId&lt;/A&gt;&lt;/STRONG&gt;&amp;nbsp;while some have &lt;STRONG&gt;AccountId&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;TeamMemberId is not always returned with this api call. How do I do an api call to get the account information using &lt;STRONG&gt;UserInfo&lt;/STRONG&gt; if I am using a TeamClient. If I try to use a regular &lt;STRONG&gt;AccountId&lt;/STRONG&gt; instead of &lt;STRONG&gt;TeamMemberId&lt;/STRONG&gt; I get an exception stating:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;This API function operates on a single Dropbox account, but the OAuth 2 access token you provided is for an entire Dropbox Business team.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;So how to I get the account information when the teamMemberid is not always returned with the call and I am using a team client.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Basically, how do I get account information when I only have the accountId and am using a TeamClient for an admin account?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:32:34 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-Account-Id-from-UserInfoMembership-using-Team-Client-NET/m-p/171803#M6505</guid>
      <dc:creator>Filip J.1</dc:creator>
      <dc:date>2019-05-29T09:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: Get Account Id from UserInfoMembership using Team Client .NET</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-Account-Id-from-UserInfoMembership-using-Team-Client-NET/m-p/171804#M6506</link>
      <description>&lt;P&gt;UserInfo.TeamMemberId is documented as "The team member ID of the shared folder member. Only present if SameTeam is true.", meaning it will only be present if "the user is in the same team as current user." The "current user" here is the user you're making the&amp;nbsp;ListFolderMembersAsync call for. (That is, by setting AsMember on the team client.)&lt;/P&gt;
&lt;P&gt;When you say you "try to use a regular AccountId instead of TeamMemberId", where are you supplying the account ID?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you just want information about that other user, what you should&amp;nbsp;do is call&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Users_Routes_UsersRoutes_GetAccountAsync_1.htm" target="_blank" rel="nofollow noreferrer"&gt;GetAccountAsync&lt;/A&gt; with the account ID you're interested in as the accountId parameter, using a team client with AsMember still set to the same member that you used to call&amp;nbsp;ListFolderMembersAsync in the first place. (If the user for the accountId isn't on the same team, you don't have authorization to make calls on their behalf, using AsMember, anyway.)&lt;/P&gt;
&lt;P&gt;If you're still having trouble, please share some code that shows the issue.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2016 03:03:33 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-Account-Id-from-UserInfoMembership-using-Team-Client-NET/m-p/171804#M6506</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-06-21T03:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: Get Account Id from UserInfoMembership using Team Client .NET</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-Account-Id-from-UserInfoMembership-using-Team-Client-NET/m-p/171805#M6507</link>
      <description>&lt;P&gt;If I have a fileMetaData object and grab the&amp;nbsp;fileItem.SharingInfo.ModifiedBy it will return the id of the account that last modified the file.&lt;/P&gt;
&lt;P&gt;How do I get the information of this account&amp;nbsp;if I only have the this accountId and no longer have access to the asMember id?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2016 04:43:42 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-Account-Id-from-UserInfoMembership-using-Team-Client-NET/m-p/171805#M6507</guid>
      <dc:creator>Filip J.1</dc:creator>
      <dc:date>2016-06-21T04:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: Get Account Id from UserInfoMembership using Team Client .NET</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-Account-Id-from-UserInfoMembership-using-Team-Client-NET/m-p/171806#M6508</link>
      <description>&lt;P&gt;The same as the other scenario, if you have an account ID and you want information about that account, you'll need to call&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Users_Routes_UsersRoutes_GetAccountAsync_1.htm" target="_blank" rel="nofollow noreferrer"&gt;GetAccountAsync&lt;/A&gt;. That is a user endpoint though, so you do need to use AsMember if you have a team client. What do you mean when you say you "no longer have access to the asMember id" though? Can't you just use the same team client with asMember set that you used to retrieve the file metadata itself?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2016 04:55:03 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-Account-Id-from-UserInfoMembership-using-Team-Client-NET/m-p/171806#M6508</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-06-21T04:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: Get Account Id from UserInfoMembership using Team Client .NET</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-Account-Id-from-UserInfoMembership-using-Team-Client-NET/m-p/171807#M6509</link>
      <description>&lt;P&gt;I could, but I haven't passed it down in my functions and am wondering if I can do without it.&lt;/P&gt;
&lt;P&gt;It seems redundant that I need to use &lt;STRONG&gt;memberId&lt;/STRONG&gt;&amp;nbsp;to make calls for &lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Users_Routes_UsersRoutes_GetAccountAsync_1.htm" target="_blank" rel="nofollow noreferrer"&gt;GetAccountAsync&lt;/A&gt;. The function takes in an &lt;STRONG&gt;accountId&lt;/STRONG&gt; to search for. Whether I make the call from Team Member A or Team Member B does not affect the output, why force users to have a &lt;STRONG&gt;memberId&lt;/STRONG&gt;&amp;nbsp;if the output in this case is not dependent on it?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2016 05:07:38 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-Account-Id-from-UserInfoMembership-using-Team-Client-NET/m-p/171807#M6509</guid>
      <dc:creator>Filip J.1</dc:creator>
      <dc:date>2016-06-21T05:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: Get Account Id from UserInfoMembership using Team Client .NET</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-Account-Id-from-UserInfoMembership-using-Team-Client-NET/m-p/171808#M6510</link>
      <description>&lt;P&gt;The API call itself is a user endpoint (as opposed to a team endpoint). User endpoints require a user in general, even if it doesn't matter in this particular case.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2016 05:09:40 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-Account-Id-from-UserInfoMembership-using-Team-Client-NET/m-p/171808#M6510</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-06-21T05:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: Get Account Id from UserInfoMembership using Team Client .NET</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-Account-Id-from-UserInfoMembership-using-Team-Client-NET/m-p/171809#M6511</link>
      <description>&lt;P&gt;So there is no team endpoint that allows you to get account information without using AsMember?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2016 05:12:24 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-Account-Id-from-UserInfoMembership-using-Team-Client-NET/m-p/171809#M6511</guid>
      <dc:creator>Filip J.1</dc:creator>
      <dc:date>2016-06-21T05:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: Get Account Id from UserInfoMembership using Team Client .NET</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-Account-Id-from-UserInfoMembership-using-Team-Client-NET/m-p/171810#M6512</link>
      <description>&lt;P&gt;That's correct. (For reference, &lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/T_Dropbox_Api_Team_Routes_TeamRoutes.htm" target="_blank" rel="nofollow noreferrer"&gt;TeamRoutes&lt;/A&gt;&amp;nbsp;contains all of the team endpoints.)&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2016 05:14:04 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-Account-Id-from-UserInfoMembership-using-Team-Client-NET/m-p/171810#M6512</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-06-21T05:14:04Z</dc:date>
    </item>
  </channel>
</rss>

