onedrive-api-docs: Invalid quota returned

Category

  • Question
  • Documentation issue
  • Bug

Expected or Desired Behavior

Observed Behavior

Calling https:/…sharepoint.com/_api/v2.0/drive for OneDrive for Business returns invalid Quota. It will always be

"quota": {
		"deleted": 0,
		"remaining": 0,
		"total": 0,
		"used": 0
	}

Steps to Reproduce

Go to Graph Explorer Run query for https://graph.microsoft.com/v1.0/me/drive

Thank you.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 15 (4 by maintainers)

Most upvoted comments

Encounter same issue. The test account is also business account. However, the response of https://graph.microsoft.com/v1.0/me/drive is different between Graph Explorer and Test App.

Graph Explorer:

{
   ......
   "quota": {
        "deleted": 0,
        "remaining": 1099150825664,
        "state": "normal",
        "total": 1099511627776,
        "used": 8077753
    }
}

Test App:

{
    ......
    "quota": {
        "deleted": 0,
        "remaining": 0,
        "total": 0,
        "used": 0
    }

The Test App is Python Code Sample from Official Portal. I tried below Permissions:

  • Files.Read.All
  • Files.ReadWrite.All
  • Sites.Read.All
  • Sites.ReadWrite.All

PS: The Test App can work well one week ago. However, it seem there are something wrong at your backend recently.