Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
maverick1985
2 years 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 url...
DB-Des
Dropbox Community Moderator
2 years agoHi 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 the role_id, the type of admin role the user has (under name), 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.
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!