Any search API that shows shared with me documents been used with SPFX
1 Answer
By using the Graph API from Microsoft you can list all the shared document with the signed in user, this only works if you have SharePoint Online and OneDrive. Have a look at this reference page that is describing this endpoint List items shared with the signed-in user
Graph explorer - Great tool for getting started and exploring the API and it's endpoints.
-
yes if it is one drive then the flow is OK with API "/me/drive/sharedWithMe", but for share point online is there any search API for shared documents– DevanandCommented Aug 13, 2018 at 11:12
-
Kindly find the answer for the share point search API for the shared documents /_api/search/query?querytext='author:UserName'&(IsDocument:"True" OR contentclass:"STS_ListItem") ViewableByExternalUsers=TRUE&selectproperties='Author,Title,Path,HitHighlightedProperties,FileType,IsDocument,ParentLink,LastModifiedTime'&rowlimit='90'– DevanandCommented Aug 13, 2018 at 13:48
-
The
beta/me/drive/sharedWithMe
API also returns files shared from SharePoint Online. Tested with a document in the standard Documents library - worked. Commented Dec 19, 2019 at 15:42