You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
JohnAdam_CUNY
9 months agoHelpful | Level 6
Get dbmid
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...
- 9 months ago
OK but I got a weird result type <class 'dropbox.team.MembersGetInfoV2Result'> I just want the dbmid or account_id. Is this a list?
JohnAdam_CUNY
Helpful | Level 6
OK but I got a weird result type <class 'dropbox.team.MembersGetInfoV2Result'> I just want the dbmid or account_id. Is this a list?
Greg-DB
9 months agoDropbox Staff
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.
For example:
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.")
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,888 PostsLatest Activity: 9 hours agoIf you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!