Take Your Search Game to the Next Level with Dropbox Dash 🚀✨ Curious how it works? Ask us here!
Forum Discussion
andreavillares
2 years agoExplorer | Level 3
Dropbox Webhooks to get group changes notifications
I'm using the Dropbox Business API. I've been successful at experimenting for a while with webhooks for file changes and having an understanding of the documents getting uploaded/deleted from Dropbox from all the users.
Now I need to do the same but for user permissions. I need to understand given a list of users with access to Dropbox, what folders they can access, and ideally I want to do it using Dropbox webhooks. This business is set up in a way that users get access to the right folders by putting them into a Group.
So, I mainly have one question: can webhooks register and push a notification when there is change in a group? (i.e. an user has been added/deleted to/from a group)
When configuring the Dropbox app for the webhook, I've tried giving it all the permissions that seemed to make sense but I’m only getting notifications when a member has been added/deleted to a shared folder, and not when a group (with users in it) has got access to that particular folder, if it makes sense.
I would really appreciate if you could give us some insight here and provide any documentation that is not on the website (if there is any).
8 Replies
Sort By
- Greg-DB
Dropbox Staff
Unfortunately Dropbox doesn't offer the ability to get webhook notifications for changes to groups, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.
- andreavillaresExplorer | Level 3
Thank you for your quick reply.
Is there any other alternative that I could use?
I tried a similar approach using cursors and different methods such as
team_groups_list
team_groups_list_continue(cursor)
team_groups_members_list
team_groups_members_list_continue(cursor)
and I was expecting to obtain when calling the continue with the previous cursors, an empty list if there wasn't any changes in the groups or the members within a group but it doesn't seem to be working that way as it does with other methods such as
team_members_get_info
team_members_get_info_continue
however in team_members_get_info, I don't get new information when a member gets added to a group.
Does my problem make sense?
- Greg-DB
Dropbox Staff
I'm not sure I quite follow your latest post. Using team_groups_list and team_groups_list_continue is the right way to list the groups on a team, and using team_groups_members_list and team_groups_members_list_continue is the right way to list the members of a group, but "team_members_get_info_continue" isn't a Dropbox API method. Was that a typo?
Perhaps you could share the relevant code snippet(s) of what you have so far to help illustrate?
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,989 PostsLatest Activity: 2 hours ago
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 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!