Get a list of all files from the REST API as admin

I am developing an app that watches the use of files by users. I need to get a list of all files in the enterprise. I cannot see a way to query from a single user. That user can only see their own files even when they are a global admin. I have been using the endpoint,

https://{1}-my.sharepoint.com/personal/{0}/_api/files

1 being my site and 0 being the user. 

Thanks for any help.

February 20th, 2015 4:17am

Hi,

According to your description, my understanding is that you want to get the list of all files of a specific user.

I suggest you can query the createdBy field to get the result like below:

https://mydomain.sharepoint.com/_api/files?$select=Title,CreatedBy&$filter=CreatedBy eq 'username'

Thanks

Best Regards

Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

February 23rd, 2015 2:57pm

Thanks, the solution still does not give me files in the user's personal folders. I have been using a work around by using the Sharepoint Search API to get the files listings that I want. 
  • Marked as answer by techtech 6 hours 7 minutes ago
Free Windows Admin Tool Kit Click here and download it now
March 9th, 2015 9:40pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics