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
mike1711
4 years agoExplorer | Level 3
Question on retrieving the dbmid for my user
I've just inherited a Python script that uses the Dropbox API to backup data from a third-party source to a folder.
When the employee that used the script went on to another job, his account was deactivated and the app stopped working.
So, I went in, created an app, and am setting up credentials to get the new app up and running again under a new admin user (myself).
The scipt asks for:
a token
a namespace
a userid — starts with dbmid:
From what I've been able to find, the namespace is essentially the folder. It still exists, so I don't actually need to change the value here since I'm not using another folder (at least that's how I think it works).
The token is provided by the "Generated access token" option on the App's Settings page (again, assuming I'm understanding this correctly).
The dbmid is a user-specific token. However, I have no idea where I can retrieve this value.
Any suggestions would be greatly appreciated!
IDs that start with "dbmid:" are "team member IDs", often named "team_member_id" on the API. There are a number of ways you can retrieve that via the API, such as by calling /2/team/members/list_v2[/continue], to list all team members, or /2/team/members/get_info_v2, to look up a specific team member. Those are team_members_list_v2, team_members_list_continue_v2, and team_members_get_info_v2, respectively, in the official Dropbox API v2 Python SDK. You could also use the API v2 Explorer if you just need to try out a call manually.
- Greg-DBDropbox Staff
IDs that start with "dbmid:" are "team member IDs", often named "team_member_id" on the API. There are a number of ways you can retrieve that via the API, such as by calling /2/team/members/list_v2[/continue], to list all team members, or /2/team/members/get_info_v2, to look up a specific team member. Those are team_members_list_v2, team_members_list_continue_v2, and team_members_get_info_v2, respectively, in the official Dropbox API v2 Python SDK. You could also use the API v2 Explorer if you just need to try out a call manually.
About Discuss Dropbox Developer & API
Make connections with other developers
795 PostsLatest Activity: 4 days 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!