We’re Still Here to Help (Even Over the Holidays!) - find out more 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 t...
Greg-DB
Dropbox Community Moderator
9 years agoWe 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.
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.
- nberato9 years agoNew 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-DB9 years ago
Dropbox Community Moderator
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.
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!