

So the trick when it comes to embedding anonymous document from OneDrive for Business is to change the embed code to include the URL of the external sharing link you received when you shared the file with everyone. If you now use that edited embed code in a a public web page, that page should now appear with the embedded file item from OneDrive for Business like so: With the actual sharing link you received originally, the embed code then looks like:

However, the native embed codes appears as: That is, it won’t work for public viewing on the Internet. The embed code is not for use with anonymous external users. However, if you copy and paste that code you end up with a web page like that shown above that asks for a login.įrom what I can determine the embed code provided is only for embedding inside something like a Team Site in Office 365. You will notice that the embed is also listed. You should now see an embed dialog like that shown above.

If you you select the three dots at the right a menu should appear as shown above. If you return to the source document in OneDrive for Business and view that document is a browser by clicking on it, the document should display. However, let’s now say you want to embed this document into a public web page. If the document doesn’t appear or you are prompted to login then you need to double check your document sharing. If you now plug that into another browser or an ‘in-private’ browser session the file contents should be display as shown above. I’d generally recommend you set these to read only. Next, select the file you want to share in OneDrive and then select Copy link from the menu across the top. Which you need to access as a global administrator. To share anonymously, firstly ensure that you have enabled your users to share OneDrive content with external users as shown above. You can even share files with others so that anyone can view them without needing a login. OneDrive for Business gives you the ability to share files with others quickly and easily.
