We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.
Forum Discussion
maverick1985
2 months agoExplorer | Level 3
How to determine admin user to be used in select_admin for team folders?
I am using below api to get the list of all users. How to determine the admin from these users
I need to use his/her id for select_admin: in subsequent calls for listing team folders
const headers = {
Authorization: `Bearer ${accessToken}`,
'Content-Type': 'application/json',
};
- DB-DesDropbox Engineer
Hi maverick1985,
In the response object from the request sent to /team/members/list_v2[continue] endpoint, you should check if the
roles
property is present. The information contained in this property provides therole_id
, the type of admin role the user has (undername
), and a short description of the role.As such:
"roles": [ { "role_id": "pid_dbtmr:AAAAAFMcx6E0tax39", "name": "Team", "description": "Manage everything and access all permissions" } ]
Additionally, a request to /team/members/get_available_team_member_roles provides the available team roles for the connected team, along with each role's respective
role_id
— for roles defined by Dropbox, this ID is the same across all teams.This information could then be used to filter through the list of returned users.
I hope you find this information helpful!
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,877 PostsLatest Activity: 3 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!