<?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 dbmid in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-dbmid/m-p/759320#M33189</link>
    <description>&lt;P&gt;OK but I got a weird result type &amp;lt;class 'dropbox.team.MembersGetInfoV2Result'&amp;gt; I just want the dbmid or account_id.&amp;nbsp; Is this a list?&lt;/P&gt;</description>
    <pubDate>Fri, 22 Mar 2024 18:53:11 GMT</pubDate>
    <dc:creator>JohnAdam_CUNY</dc:creator>
    <dc:date>2024-03-22T18:53:11Z</dc:date>
    <item>
      <title>Get dbmid</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-dbmid/m-p/759299#M33185</link>
      <description>&lt;P&gt;I'm working on code that copies two files from our team admin. I was able to write all the copy reference code but now it wants me to have the member_Id but the only information I have is their email.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2024 17:24:02 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-dbmid/m-p/759299#M33185</guid>
      <dc:creator>JohnAdam_CUNY</dc:creator>
      <dc:date>2024-03-22T17:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: Get dbmid</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-dbmid/m-p/759313#M33188</link>
      <description>&lt;P&gt;You can get the team member ID (from the team_member_id field) for any particular member from a number of different ways using the API, generally anywhere that the API returns team member information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, you can get the information about any particular team member, for instance by supplying their email address, by calling &lt;A href="https://www.dropbox.com/developers/documentation/http/teams#team-members-get_info" target="_blank"&gt;/2/team/members/get_info_v2&lt;/A&gt;. That's &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; in the Python SDK.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or you can list all team members using &lt;A href="https://www.dropbox.com/developers/documentation/http/teams#team-members-list" target="_blank"&gt;/2/team/members/list_v2&lt;/A&gt;[&lt;A href="https://www.dropbox.com/developers/documentation/http/teams#team-members-list-continue" target="_blank"&gt;/continue&lt;/A&gt;]. That's &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; and &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; in the Python SDK.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or you can get the new team member information when adding a new team member by calling &lt;A href="https://www.dropbox.com/developers/documentation/http/teams#team-members-add" target="_blank"&gt;/2/team/members/add_v2&lt;/A&gt;. That's &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/api/dropbox.html#dropbox.dropbox_client.DropboxTeam.team_members_add_v2" target="_blank"&gt;team_members_add_v2&lt;/A&gt; in the Python SDK.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check out the documentation linked above to see the return types for information on how to access the 'team_member_id' field. (It may be in a nested field, so be sure to click through the types as needed.)&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2024 18:26:29 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-dbmid/m-p/759313#M33188</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2024-03-22T18:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: Get dbmid</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-dbmid/m-p/759320#M33189</link>
      <description>&lt;P&gt;OK but I got a weird result type &amp;lt;class 'dropbox.team.MembersGetInfoV2Result'&amp;gt; I just want the dbmid or account_id.&amp;nbsp; Is this a list?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2024 18:53:11 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-dbmid/m-p/759320#M33189</guid>
      <dc:creator>JohnAdam_CUNY</dc:creator>
      <dc:date>2024-03-22T18:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: Get dbmid</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-dbmid/m-p/759330#M33190</link>
      <description>&lt;P&gt;No, MembersGetInfoV2Result is not itself a list, but its members_info field is a list containing the respective result for each user selector you specified in the call.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example:&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;MEMBER_EMAIL = "something@example.com"

user_selector = dropbox.team.UserSelectorArg.email(MEMBER_EMAIL)
users_to_query = [user_selector]  # this can contain more than one

result = dbx_team.team_members_get_info_v2(members=users_to_query)

for info in result.members_info:
	if info.is_member_info():
		print(info.get_member_info().profile.team_member_id)
	elif info.is_id_not_found():
		print("User not found.")
	else:
		print("Other scenario.")&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2024 19:37:43 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-dbmid/m-p/759330#M33190</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2024-03-22T19:37:43Z</dc:date>
    </item>
  </channel>
</rss>

