locked
Get all documents related to specific user in JavaScript RRS feed

  • Question

  • I want to list all documents created by specific user in JavaScript, I am still not sure what's the best way to approach it. Still new to all this JavaScript SharePoint development.
    Wednesday, July 1, 2015 9:52 PM

Answers

  • I would use the search api to do so, something like this:

    /_api/search/query?querytext='ContentClass="STS_ListItem_DocumentLibrary" AND Author="User Name" AND IsDocument="true"'
    
    Using REST to do so will give you back list with all documents created by that user.


    Mohamed Derhalli

    SharePoint Consultant

    Blog: SharePoint Thoughts    Twitter:    LinkedIn:   

    • Proposed as answer by NadeemYousuf Thursday, July 2, 2015 5:11 AM
    • Marked as answer by Patrick_Liang Friday, July 10, 2015 9:55 AM
    Wednesday, July 1, 2015 11:37 PM