1

Is there any way to get all documents for a user in SharePoint online enterprise, if not personal ?

I am looking for a JavaScript solution or maybe rest api. But I really want all single documents user has access to in portal of our company.

2

Definitely you should look into the SharePoint Search API for performing such a task.

For example, the following Search REST endpoint:

/_api/search/query?querytext='ContentClass="STS_ListItem_DocumentLibrary" AND IsDocument="true" AND Author="John Doe"'

returns documents that have been created by John Doe.

References

3
  • i had this in my mind but my manager is planning to get everyone in company office 365 personal where there is no search api. but thank you Apr 20 '14 at 12:14
  • 1
    @CustomizedName, you say in your question that you are using SharePoint Online Enterprise, and at the same time claims there is no search API. Getting me confused! Apr 20 '14 at 13:31
  • If you mean Office 365 Personal, there is really no connection to SharePoint at all I'm afraid Apr 20 '14 at 14:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.