Microsoft Security | Microsoft Graph
An API that connects multiple Microsoft services, enabling data access and automation across platforms
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I am trying to get the drive-ids of a SharePoint site. In order to do that I use the following element:
The URI is in the form of:
The result is this (status code 200):
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#drives",
"value": []
}
When I try exactly the same URI in Graph Explorer, I get this:
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#drives",
"value": [
{
"createdDateTime": "2022-10-16T00:17:42Z",
"description": "",
"id": "b!xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"lastModifiedDateTime": "2023-01-04T05:44:57Z",
"name": "Documents",
"webUrl": "https://xxxx.sharepoint.com/sites/xxxxxxxx/Shared%20Documents",
"driveType": "documentLibrary",
"createdBy": {
"user": {
"displayName": "System Account"
}
},
"lastModifiedBy": {
"user": {
"email": "******@xxxx.xxx",
"id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx",
"displayName": "x x"
}
},
"owner": {
"group": {
"email": "******@xxxx.onmicrosoft.com",
"id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx",
"displayName": "xxxxxxxx xxxx xxxx"
}
},
"quota": {
"deleted": 1794912,
"remaining": 27487786218381,
"state": "normal",
"total": 27487790694400,
"used": 2681107
}
}
]
}
Both applications have the following permissions:
Can anyone tell me why I am getting different results in the two applications?