Deprecation of /insights/shared and /me/drive/sharedWithMe - Missing viable migration path for file discovery

Naman Mukesh 20 Reputation points
2026-07-09T06:38:29.9833333+00:00

I am developing an application that relies on discovering files shared with the logged-in user. The legacy /insights/shared endpoint is being retired, and modern alternatives like sharedWithMe are also facing deprecation notices.

The suggested transition to the Search API with queryString: "sharedWithMe:true" does not yield identical behavior or performance for cross-tenant/large-scale environments.

Could the product team clarify the official, long-term architectural pathway to replicate user-centric shared file aggregation without relying on endpoints slated for removal?

Microsoft 365 and Office | SharePoint | Development
0 comments No comments

Answer accepted by question author
Anonymous
2026-07-09T07:28:41.43+00:00

Hi @Naman Mukesh

Please note that we're not Microsoft Support or product team, this is a user-to-user community forum. Moderators here don't have access to user environment or Microsoft's backend systems, so we can only provide guidance based on public documentation and community experience.

From my findings, I am not aware of any publicly documented one-to-one replacement for the deprecated/me/drive/sharedWithMe API that fully reproduces the same user-centric shared content aggregation experience. Some Microsoft documentation and community discussions point developers toward Microsoft Search APIs, but I have not found documentation describing an equivalent architecture that guarantees identical behavior, results, or performance.

You may also find it useful to review the workaround approach shared by Jonas H in this thread. However, this is a community-provided workaround, not an officially documented replacement from Microsoft.

In addition, other users have already submitted feedback requesting guidance and an alternative solution for this deprecation. If this scenario affects your application, consider upvoting the existing feedback item to help increase its visibility with the product team: Suggest a workaround for /me/drive/sharedWithMe · Community.

Thank you for your understanding.


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.  

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.