2025 sparked some incredible conversations across our community 👩💻. Discover the highlights and see what’s ahead in 2026.
Forum Discussion
TheWhistler1967
3 years agoExplorer | Level 3
GroupSelector
Hi there,
I have a fundamental misunderstanding of how to use 'GroupSelector'.
Code:
dbt = dropbox.DropboxTeam(TOKEN) members = dbt.team_groups_members_list(g.group_id)
Error: Validat...
- 3 years ago
TheWhistler1967 As Здравко mentioned, you can use the API to look up the existing group(s) to get the group ID(s). Then you can use that to build a GroupSelector as needed, like this:
dbt = dropbox.DropboxTeam(TOKEN) # just taking the first group as an example: group = dbt.team_groups_list().groups[0] group_selector = dropbox.team.GroupSelector.group_id(group.group_id) members = dbt.team_groups_members_list(group_selector)(Don't forget to implementation the pagination over team_groups_list/team_groups_list_continue and team_groups_members_list/team_groups_members_list_continue.)
Greg-DB
Dropbox Community Moderator
3 years agoTheWhistler1967 As Здравко mentioned, you can use the API to look up the existing group(s) to get the group ID(s). Then you can use that to build a GroupSelector as needed, like this:
dbt = dropbox.DropboxTeam(TOKEN)
# just taking the first group as an example:
group = dbt.team_groups_list().groups[0]
group_selector = dropbox.team.GroupSelector.group_id(group.group_id)
members = dbt.team_groups_members_list(group_selector)
(Don't forget to implementation the pagination over team_groups_list/team_groups_list_continue and team_groups_members_list/team_groups_members_list_continue.)
- TheWhistler19673 years agoExplorer | Level 3
Thank you very much.
This was my problem, I didn't invoke .group_id, eg.group_selector = dropbox.team.GroupSelector(group.group_id)vs
group_selector = dropbox.team.GroupSelector.group_id(group.group_id)
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!