
Thank you for posting your question on the forum and for giving us the opportunity to look into it.
After reviewing your scenario, I’m sorry to confirm that at this time Microsoft Graph API does not provide a single, reliable piece of metadata to definitively determine whether a file in OneDrive was created from an Office client or uploaded from another source.
While fields such as driveItemSource.application
or createdBy.application
can sometimes offer clues, they are not consistently populated and may not provide the level of detail needed for certain use cases. This is a known limitation, and the official documentation driveItem resource type - Microsoft Graph v1.0 | Microsoft Learn notes that
The implication is that facets are only present when the system has that specific data. If the source application information isn’t captured at creation time, the API will not return it.
If you’d like to raise this as a feature request or discuss potential workarounds with other experts, the Microsoft Tech Community is a great place to start.
Thank you again for engaging with the community.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.