With my AzureApp (ClientID) I am able to create folders in the drive and upload a file in the created folder.
In my App I can see, access and download the file. [/drives/{drive-id}/items/{itemid}
In the Share Point Online Browser logged in as the site owner: I can see all folders, but not the files.
When I call in the app /drives/{drive-id}/items/{itemid} I get also the "webUrl" property. When I open this in a browser an empty page is shown (404). (file type is PDF, should show the file).
When I call /drives/{drive-id}/items/{itemid}/permissions I do see the owner with "grantedTo" and "grantedToV2"
{
"id": "aTowIy5mfG1lbWJlcnNoaxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"roles": [
"owner"
],
"shareId": "aTowIy5mfG1lbWJlcnNoaXB8bxxxxxxxxxxxxxxxxx",
"grantedToV2": {
"user": {
"@odata.type": "#microsoft.graph.sharePointIdentity",
"displayName": "Ingo yyy (Admin)",
"email": "******@xxxxxx.onmicrosoft.com",
"id": "69a7c4d5-abf4-4187-b241-xxxxxxxx"
},
"siteUser": {
"displayName": "Ingo yyy(Admin)",
"email": "******@xxxx.onmicrosoft.com",
"id": "17",
"loginName": "i:0#.f|membership|******@xxxxx.onmicrosoft.com"
}
},
"grantedTo": {
"user": {
"displayName": "Ingo yyy(Admin)",
"email": "******@xxx.onmicrosoft.com",
"id": "69a7c4d5-abf4-4187-b241-xxxxx"
}
},
"inheritedFrom": {}
}
I would understand with an permission error, then I wold expect not seeing the folder and the files. But strange, I can see the folders (created via MS Graph) but not the file?
Thanks for your help
Ingo, from Cologne Germany