You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
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 Staff
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.)
TheWhistler1967
3 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.
5,910 PostsLatest Activity: 3 days 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!