Forum Discussion
pbansal
Jan 20, 2022Copper Contributor
Get site drives returns used_size_in_bytes in quota as total size of site for each drive
I am using ListDrives graph api call to get the size of the drives in sharepoint site: https://docs.microsoft.com/en-us/graph/api/drive-list?view=graph-rest-1.0&tabs=http#list-a-sites-drives However...
llp_ryangraham
Feb 08, 2022Copper Contributor
We're experiencing the same regression in our environment. We used to be able to use ListDrives to fetch the size of each site's "Preservation Hold Library"; however, now the values are the same for all drives of the same site. See below for a sample. You can see that "Documents" & "Preservation Hold Library" have the exact same properties for "Quota". (Actual sizes are altered to protect privacy). Could anyone assist? Thanks
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#drives",
"value": [
{
"name": "Documents",
"quota": {
"deleted": 0,
"remaining": 31487657600943,
"state": "normal",
"total": 31487790694400,
"used": 233093457
}
},
{
"name": "Preservation Hold Library",
"quota": {
"deleted": 0,
"remaining": 31487657600943,
"state": "normal",
"total": 31487790694400,
"used": 233093457
}
}
]
}