Get site drives returns used_size_in_bytes in quota as total size of site for each drive

%3CLINGO-SUB%20id%3D%22%5C%26quot%3Blingo-sub-3067964%5C%26quot%3B%22%20slang%3D%22%5C%26quot%3Ben-US%5C%26quot%3B%22%3EGet%20site%20drives%20returns%20used_size_in_bytes%20in%20quota%20as%20total%20size%20of%20site%20for%20each%20drive%26lt%3B%5C%2Flingo-sub%26gt%3B%3CLINGO-BODY%20id%3D%22%5C%26quot%3Blingo-body-3067964%5C%26quot%3B%22%20slang%3D%22%5C%26quot%3Ben-US%5C%26quot%3B%22%3E%3CP%20class%3D%22%5C%26quot%3B%5C%26quot%3B%22%3EI%20am%20using%20ListDrives%20graph%20api%20call%20to%20get%20the%20size%20of%20the%20drives%20in%20sharepoint%20site%3A%20%3CA%20href%3D%22%5C%26quot%3Bhttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fdrive-list%3Fview%3Dgraph-rest-1.0%26amp%3Btabs%3Dhttp%23list-a-sites-drives%5C%26quot%3B%22%20target%3D%22%5C%26quot%3B_blank%5C%26quot%3B%22%20rel%3D%22%5C%26quot%3Bnoopener%20nofollow%20noopener%20noreferrer%22%20noreferrer%3D%22%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fdrive-list%3Fview%3Dgraph-rest-1.0%26amp%3Btabs%3Dhttp%23list-a-sites-drives%26lt%3B%5C%2FA%26gt%3B%26lt%3B%5C%2FP%26gt%3B%3C%2FA%3E%3C%2FP%3E%3CP%20class%3D%22%5C%26quot%3B%5C%26quot%3B%22%3EHowever%20the%20%3CEM%3Eused_size_in_bytes%26lt%3B%5C%2FEM%26gt%3B%20in%20%3CEM%3Equota%20%26lt%3B%5C%2FEM%26gt%3Bfor%20each%20drive%20is%20equal%20to%20the%20total%20size%20of%20the%20sharepoint%20site.%20Is%20this%20expected%20or%20a%20recent%20regression%3F%26lt%3B%5C%2FP%26gt%3B%26lt%3B%5C%2Flingo-body%26gt%3B%3C%2FEM%3E%3C%2FEM%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3C%2FLINGO-SUB%3E
Occasional Visitor

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-dri...

However the used_size_in_bytes in quota for each drive is equal to the total size of the sharepoint site. Is this expected or a recent regression?

1 Reply

@pbansal 

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
      }
    }
  ]
}