I'm currently working on a C# asp.net mvc web app using the Google Reports API from Admin SDK to receive notifications when something happens on my Google Drive.
Then, I need to use in addition the Drive REST API GET Request to build the file Path (and more) by using the the doc_id
given by the Reports API.
Everything is working fine, except when the Report API notifies me with another user unshared file. The Drive REST API is trying to find the file with no success.
Here is the Error 404 returned:
Google.Apis.Requests.RequestError
File not found: 0B48ytfDI5h8qY2k4VzdjMkZRNXM [404]
Errors [
Message[File not found: 0B48ytfDI5h8qY2k4VzdjMkZRNXM] Location[file - other] Reason[notFound] Domain[global]
]
I'm using this scope : DriveService.Scope.Drive
The file owner is able to see metadata of his file by using this form, and I still have the Error 404.
I'm the drive administrator and on my Google Apps Admin Settings, I've tried different configs with no success, even with the Default Shared Link on Everyone from the domain.
So my question is: Is that possible to get file meta data when you are not the file owner and the file isn't shared ?
PS: I'm using a Google Apps for work unlimited in relation with my work domain, so I thought I could at least get metadata files as an admin even if the file is not shared.