Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Scanning one drive for business private folders in Sharepoint 2013

$
0
0

Hello

I need to scan files (pick up content and meta data) on private folders in one drive for business.

The application I'm writing is in Java. I'm using the Sharepoint 2013 rest API.

I'm able to get an access token and a list of files from the API, but the list of files is limited to the user whose credentials I used to get the access token.

For example if I use Joe's(who is in the company administrator group) credentials to get the OAuth access token I can get all the files under https: //mycompany601-my.sharepoint.com/personal/joe_mycompany601_onmicrosoft_com and any folders shared with Joe using

GET https: //mycompany601-my.sharepoint.com/personal/joe_mycompany601_onmicrosoft_com/_api/Files

If I try this for another user Jack

GET https: //mycompany601-my.sharepoint.com/personal/jack_mycompany601_onmicrosoft_com/_api/Files

I only get the list of files Jack has shared with Joe, if any.

If I go back and obtain an access token using Jack's credentials through OAuth I can get a list of all the files in his account, but this is clearly not a workable solution since I'd need the credentials of every user.

Is there any way for me to get the list of files in all private site folders on Sharepoint 2013? Any help would be appreciated.



Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>