Hi @Anonymous ,
Thanks for reaching out!
Based on my understanding and post reviewing the description you shared, Graph API: GET search/query will return the duplicate file details from user’s drive when that particular file has been shared with other account.
As per the documentation, The “trimDuplicates”
property is only supported on files hosted in SharePoint.
Hope this helps.
If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.