SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'd like to know if in SP there's a method to know all the files "linked" to a user. This feature must be cross site collection and return all the files over the webapp that the user can read or contribute. That method had to work also with groups (if user A is in B group, and B group can read a Document Library, the function must return also all the files in B group)

Thank you very much

share|improve this question
up vote 3 down vote accepted

The closest you can get with default functionality is to impersonate a user and make a search with the user whose "linked" files you're interested in listing.

Considering it is practically not possible to impersonate as each user, I would start off from this blog article and modify the code to be cross site collection and across all web apps.

You could then even schedule it to run during off-peak times and generate CSV or other listings per user.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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