OneDrive for Business viewing files and shares

%3CLINGO-SUB%20id%3D%22lingo-sub-391975%22%20slang%3D%22en-US%22%3EOneDrive%20for%20Business%20viewing%20files%20and%20shares%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-391975%22%20slang%3D%22en-US%22%3E%3CP%3EGood%20morning%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20had%20a%20request%20today%20from%20my%20companies%20owner%2C%20he%20want%20to%20be%20able%20to%20view%20all%20the%20physical%20files%20in%20Onedrive%20for%20Business%20and%20who%20they%20have%20been%20shared%20with.%20Is%20this%20possible%3F%20Where%20do%20I%20even%20start%3F%20I%20can%20see%20the%20users%20and%20how%20many%20files%2C%20but%20no%20the%20actual%20files......All%20help%20and%20direction%20is%20appreciated.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-391975%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOneDrive%20for%20Business%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-392073%22%20slang%3D%22en-US%22%3ERe%3A%20OneDrive%20for%20Business%20viewing%20files%20and%20shares%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-392073%22%20slang%3D%22en-US%22%3E%3CP%3ERunning%20this%20now%2C%20thanks%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F58%22%20target%3D%22_blank%22%3E%40Vasil%20Michev%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-392068%22%20slang%3D%22en-US%22%3ERe%3A%20OneDrive%20for%20Business%20viewing%20files%20and%20shares%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-392068%22%20slang%3D%22en-US%22%3EYay%2C%20didn%E2%80%99t%20know%20that%20one!%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-392065%22%20slang%3D%22en-US%22%3ERe%3A%20OneDrive%20for%20Business%20viewing%20files%20and%20shares%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-392065%22%20slang%3D%22en-US%22%3E%3CP%3EYou%20can%20run%20a%20content%20search%20with%20the%20corresponding%20keywords%20to%20generate%20a%20list%20of%20either%20internally%20or%20externally%20shared%20files%2C%20or%20both%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Foffice365%2Fsecuritycompliance%2Fkeyword-queries-and-search-conditions%23searching-for-site-content-shared-with-external-users%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Foffice365%2Fsecuritycompliance%2Fkeyword-queries-and-search-conditions%23searching-for-site-content-shared-with-external-users%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-391983%22%20slang%3D%22en-US%22%3ERe%3A%20OneDrive%20for%20Business%20viewing%20files%20and%20shares%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-391983%22%20slang%3D%22en-US%22%3EI%E2%80%99ll%20guess%20you%E2%80%99ll%20have%20to%20create%20a%20powershell%20script%2C%20and%20make%20an%20account%20owner%20of%20all%20onedrive%20sites%20then%20do%20a%20search%20for%20all%20files%20and%20the%20sharing%20status%20and%20do%20a%20report!%20I%E2%80%99m%20not%20sure%20if%20there%E2%80%99s%20any%20API%E2%80%99s%20to%20use%20here%20also!%20Haven%E2%80%99t%20found%20any%20script%20for%20this%2C%20but%20I%E2%80%99ll%20try%20find%20something!%3CBR%20%2F%3E%3CBR%20%2F%3EAdam%3C%2FLINGO-BODY%3E
Occasional Contributor

Good morning,

 

I have had a request today from my companies owner, he want to be able to view all the physical files in Onedrive for Business and who they have been shared with. Is this possible? Where do I even start? I can see the users and how many files, but no the actual files......All help and direction is appreciated. 

4 Replies
I’ll guess you’ll have to create a powershell script, and make an account owner of all onedrive sites then do a search for all files and the sharing status and do a report! I’m not sure if there’s any API’s to use here also! Haven’t found any script for this, but I’ll try find something!

Adam

You can run a content search with the corresponding keywords to generate a list of either internally or externally shared files, or both: https://docs.microsoft.com/en-us/office365/securitycompliance/keyword-queries-and-search-conditions#...

 

Yay, didn’t know that one!

Running this now, thanks@Vasil Michev