Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
JohnAdam_CUNY
1 year 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...
- 1 year 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
1 year agoHelpful | 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
Dropbox Community Moderator
1 year agoNo, 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 and Feedback
Get help with the Dropbox API from fellow developers and experts.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If 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, Facebook or Instagram.
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!