The process of building custom applications and tools that interact with Microsoft SharePoint, including SharePoint Online in Microsoft 365.
Dear @Naimur Rashid,
I hope you’re having a good day.
Thank you for the detailed question. Unfortunately, you've identified a challenge that many developers are currently facing.
The first thing to note is that GET /me/drive/sharedWithMe has indeed been marked as deprecated and Microsoft states that it will operate in a degraded state until November 2026, after which it will stop returning data.
Regarding your main question, I have not been able to find any Microsoft documentation that identifies a supported 1:1 replacement for the sharedWithMe endpoint. In fact, Microsoft moderators have stated in similar discussions that no official replacement API has been announced at this time.
Based on current guidance and community discussions, Microsoft appears to be steering developers toward Microsoft Graph Search and other drive-centric access patterns rather than relying on the legacy sharedWithMe endpoint.
However, I would not consider the Search API to be a complete replacement for the native"Shared with me" experience. As you've already observed, Search can return driveItem results, but it does not reliably reproduce all of the semantics of the OneDrive/SharePoint Shared with me view, including discovery behavior and navigation scenarios.
Therefore, my current understanding is:
- There is currently no officially documented 1:1 replacement for /me/drive/sharedWithMe.
- The Microsoft Graph Search API is the closest supported approach for work or school accounts, but it does not provide full feature parity with the native Shared with me experience.
- Microsoft has not published guidance describing how to reliably identify all "shared with me" items, preserve the exact navigation experience, or recreate the full OneDrive UX using Search alone.
Given the impact on your implementation, you may also want to raise this through the Microsoft Graph feedback channels or open a support case if you require an authoritative product-group recommendation. At the moment, the gap appears to be that the deprecated API has a clear retirement path, but the equivalent replacement for the Shared with me scenario has not yet been publicly documented.
I hope this information helps point you in the right direction. If you run into any issues while trying the steps, or if something still doesn’t feel quite right, please don’t hesitate to reach out again. I’ll do my best to support you however I can.
Looking forward to hearing back from you with any updates or additional details.
Warm regards,
If the answer is helpful, please select "Yes" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in the forum documentation to enable email notifications if you want to receive the related email notification for this thread.