We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.
Forum Discussion
adsalguero
21 days agoExplorer | Level 4
GET Usage (in MB, updates every 8 hours) FROM python sdk
Hello, I want to obtain the corresponding values for Usage (in MB, updates every 8 hours) obteined using the manual export member data in the admin console. Currently this is my test code: ...
DB-Des
Dropbox Engineer
Hi adsalguero,
I'll be happy to help with any issues you're having with the Dropbox API, but I'll need some more information. Could you clarify what you mean by "But I only get "Data (MB) member has access to"?
Just to confirm, the /users/get_space_usage endpoint returns only "used" and "allocated" space when the user is tagged as ".individual". For members of a team, you receive two "used" properties. The top level "used" property is the user's total space usage, while the "used" property within the "allocation" object property is the total space currently used by the user's team.
In the code snippet you provided, you are calling users_get_space_usage()
twice on the same user. You are also assigning the top level "used" property to both used
and used_bytes
variables, so it would be expected for these values to be the same:
...
account_info = user_dbx.users_get_space_usage()
used_bytes = account_info.used
...
account_info = user_dbx.users_get_space_usage()
used = account_info.used
...
adsalguero
17 days agoExplorer | Level 4
Good morning,
We are now using the data provided by the Member Data Report, which I extract from the Dropbox Business reports. This report includes two columns: “Usage (in MB, updates every 8 hours)” and “Data (MB) member has access to.” The first column represents the space used by the user, while the second column shows the space that the user can see. Therefore, when I said, “But I only get ‘Data (MB) member has access to,’” I meant that I cannot retrieve the space used by a particular user.
For example:
User 1 has 30 MB of their own storage, not shared with anyone else. The same user is also in a shared folder or team folder and can see 3 TB of files. I want to get the 30 MB, but no matter which code I use, I get 3 TB.
Using:
user_dbx = dbx_team.as_user(specific_member['team_member_id'])
account_info = user_dbx.users_get_space_usage()
Shouldn’t this be the data related to “Usage (in MB, updates every 8 hours)”?
Regards
- DB-Des16 days agoDropbox Engineer
Thank you for clarifying. The value stored in the "user_within_team_space_used_cached" property should match the value in the "Usage (in MB, updates every 8 hours)" column.
About Discuss Dropbox Developer & API
Make connections with other developers
795 PostsLatest Activity: 5 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!