Sharing an O365 SharePoint Library External Anonymously

Just a quick post as a response to a question on a Facebook SharePoint group. He wanted to know, “Is it possible to embed a document library into an external web page?” Well, not exactly because we don’t do anonymous access any longer, but you can do this:

 
 

Synchronize a library with a folder in your OneDrive account.

If you click on the Synch button at the top of your library, you will get this:


Then you will see this possibly:


 
 

I had to kill my OneDrive to capture all of these screenshots for you folks reading. This is a person Business account. It isn’t Outlook.com or Hotmail.com. I own madwhitehatter.com, so I need to select Work or School.


Follow the little tutorial.


 
 

 
 

Change the permissions on the folder to allow anonymous access.

 
 


 
 

If you haven’t clicked on any files, click on Share.


I really like how you can set an expiration date, or even allow editing.

 
 

 
 

Take the code from OneDrive and put it on a page.

Click at the top where you see embed. You’ll see a little side window slide in.

 
 


Click on the Generate button. On the external page you are sharing, insert that piece of script.


Voila. You can now share externally. The key thing to remember is that if the person making that code ever leaves the organization, you are screwed. This is why I have a general admin@XYZ.onmicrosoft.com account for every O365 environment I am working with. If you are working with SharePoint 2013 or 2016, I’m sorry. I cannot confirm if the way that one could mirror a library to one’s OneDrive works the same way.

Author: Scott

Scott Brewster works for Data Analytics Solutions. He is got his Certified Knowledge Manager (CKM) credentials through the Knowledge Management Institute (KMI), and he has been working on both the farm administration and front end solution architecture of SharePoint since 2008.