One month down in 2025: How are your resolutions coming along? Check out how to get back on track here.
Forum Discussion
nberato
9 years agoNew member | Level 2
Mapping webhooks users to accounts
Is there any guarantee that the order of "users" and "accounts" in a webhook notification body is the same?
e.g. in the sample webhook notification below, does the user "12345678" correspond to the account "dbid:AAH4f99T0taONIb-OurWxbNQ6ywGRopQngc"?
{ "list_folder": { "accounts": [ "dbid:AAH4f99T0taONIb-OurWxbNQ6ywGRopQngc", ... ] }, "delta": { "users": [ 12345678, 23456789, ... ] } }
- Greg-DB
Dropbox Staff
We don't document a guarantee for that, so I don't recommend relying on it.
What's your use case for this though? The intent is that you should only need to use one or the other. I'll be happy to send along a feature request but some additional context would be helpful.- nberatoNew member | Level 2I'm attempting to do an online migration of an app from API v1 to v2 and it would be great to not have to do additional lookups to verify the mapping, especially since there's a limit to the amount of time to respond to a webhook.
- Greg-DB
Dropbox Staff
Thanks! I'll send this along.
For reference, as it is right now, as you migrate to API v2, to record the user ID to account ID mapping you can call /2/users/get_current_account for the known user ID to get the account ID.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,949 PostsLatest Activity: 27 minutes 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!