cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Share your feedback on the Document Scanning Experience in the Dropbox App right here.

Discuss Dropbox Developer & API

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Re: Question on retrieving the dbmid for my user

Question on retrieving the dbmid for my user

mike1711
Explorer | Level 3
Go to solution

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!

1 Accepted Solution

Accepted Solutions

Greg-DB
Dropbox Staff
Go to solution

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.

View solution in original post

1 Reply 1

Greg-DB
Dropbox Staff
Go to solution

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.

Need more support?