Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
swa22
3 years agoHelpful | Level 6
Not sure how to interpret /users/get_space_usage output for team account
Hello,
I get the following output from get_space_usage for a team account:
allocation = {
".tag" = team;
allocated = 9895604649984;
used = 7346077264133...
- 3 years ago
I need to make a self correction. Turns out the user has given me a wrong input on the problem. After a deeper investigation it has turned out that all numbers in his account are adding up correctly. I apologize for the mistake!
swa22
3 years agoHelpful | Level 6
Thanks for getting back to me.
Well, I guess my code is too long to fit into a forum post, but I have already outlined the essence of it.
I have my own app that connects to the Dropbox API (REST HTTP) on behalf of a user to build a breakdown of the user's usage of Dropbox space quota, by scanning all files and folders, calculating their total size, and building a sorted list.
The user in question is a regular user, not an admin / team owner.
On one hand, I query get_space_usage and obtain the overall used space for the team and for this particular user.
On the other hand, I send a sequence of list_folder requests to scan ALL files and folders and calculate their total size. For these requests, I include the Dropbox-API-Path-Root, including the "root" parameter equal to the "root_namespace_id" obtained from the previous get_current_account request. I'm sure the Dropbox-API-Path-Root is working, because after including it, I can see additional shared folders that weren't visible without the header.
However, even with the shared folders included, the outcome is that the total of all files and folders is significantly (order of magnitude) less than the user's own used space reported by get_space_usage.
My question is, how is it possible to explain this striking discrepancy, what are the possible scenarios? What could be using the rest of the used space? Why am I not able to scan it with list_folder?
Greg-DB
Dropbox Community Moderator
3 years agoswa22 Thanks for the additional information. I'll check in with the team on this.
- swa223 years agoHelpful | Level 6
I need to make a self correction. Turns out the user has given me a wrong input on the problem. After a deeper investigation it has turned out that all numbers in his account are adding up correctly. I apologize for the mistake!
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!