cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
What’s new: end-to-end encryption, Replay and Dash updates. Find out more about these updates, new features and more here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

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

Getting the team member ID for Dropbox Business API

Getting the team member ID for Dropbox Business API

Aupajo
New member | Level 2
Go to solution

Users authenticated via a Dropbox Business app must provide a member_id (by the Dropbox-Select-User header, for example) when making a User Endpoint request.

 

It's not clear how to fetch that member_id token. The best I can come up with is to go through `/members/list` until I can find an entry that matches the current user.

 

Is there a way of quickly finding the member_id of the authenticated user to send through for the Dropbox-Select-User header?

1 Accepted Solution

Accepted Solutions

Greg-DB
Dropbox Staff
Go to solution

Which "authenticated user" do you mean, exactly? Note that Dropbox Business API apps are linked to the entire team, not a specific member, so for any given Dropbox Business API app linked to a team, there isn't exactly a specific member implied.

 

If you mean the particular member that happened to authorize the app to connect to the team, you can look them up using /2/team/token/get_authenticated_admin. Note that this will vary by access token though, and isn't necessarilly the current end-user of your app. It also won't necessarilly be available for every access token.

 

Alternatively, if you're looking for a particular member based on a known email address or external ID, you can look them up using /2/team/members/get_info.

View solution in original post

2 Replies 2

Greg-DB
Dropbox Staff
Go to solution

Which "authenticated user" do you mean, exactly? Note that Dropbox Business API apps are linked to the entire team, not a specific member, so for any given Dropbox Business API app linked to a team, there isn't exactly a specific member implied.

 

If you mean the particular member that happened to authorize the app to connect to the team, you can look them up using /2/team/token/get_authenticated_admin. Note that this will vary by access token though, and isn't necessarilly the current end-user of your app. It also won't necessarilly be available for every access token.

 

Alternatively, if you're looking for a particular member based on a known email address or external ID, you can look them up using /2/team/members/get_info.

Aupajo
New member | Level 2
Go to solution

Perfect! Yes, I was looking for the authenticated admin's team member ID.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Aupajo New member | Level 2
  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?