I am trying to get shared files from shared folder of external tenant.
By following https://learn.microsoft.com/en-us/graph/api/drive-sharedwithme?view=graph-rest-1.0&tabs=http
Call GET /me/drive/sharedWithMe?allowexternal=true
I can get the top folder in shared-folder (with remoteItem)
{
"value": [
{
"id": "1312ghi",
...,
"remoteItem": {
"id": "987def!654",
"name": "Top FFol",
"folder": {
"childCount": 63
},
"size": 145362,
"parentReference": {
"driveId": "987def",
"id": "987def!321"
}
}
}
]
}
However, when I try to call for the detail GET https://graph.microsoft.com/v1.0/drives/987def/items/987def!654
https://graph.microsoft.com/v1.0/drives/987def/items/987def!654/children
It returns itemNotFound
{
"error": {
"code": "itemNotFound",
"message": "Item not found",
"innerError": {
"date": "2023-05-16T11:34:56"
}
}
}
I dont know if any permission missing? I am able to see the shared-folder/sub files in OneDrive WebUI, and I can get the top folders from the shared-folder from the api, but why can not get the detail or list of children through api?