Forum Discussion
✨Get embed code for video in SharePoint or OneDrive
Well, testing further I realize that anonymous access embed code works with default SharePoint Online configuration. However I still stand behind my argument this feature not being well-thought; when https://learn.microsoft.com/en-us/sharepoint/control-access-from-unmanaged-devices turned on, viewing the embed webpart (configured with anonymous embed link) fails on all unmanaged devices while browsing the site. All SP site content is displayed except the anonymous stream video iframe...
Unfortunately, there isn't a way to have public anonymous embed codes for any file in ODSP including videos today. This is something we are investigating for 2023.
I agree with you that the permissions in ODB/SPO are confusing and that the concepts of "Direct Access" and "Share Links" are hard for everyone to understand. We decided to start with video embed codes acting like all other file embed codes based on "Direct access" permissions.
I would encourage you to vote on or add new ideas to the ideas forum for public anonymous embed codes and/or for "anyone in the organization" embed codes that act more like share links do: https://aka.ms/StreamIdeas
- elopez_sttJun 19, 2025Copper Contributor
It's 2025, when can we get anonymous embeds? Do we really have to resort to using YouTube? What are people paying microsoft for.
- T-EskolaSep 30, 2023Brass Contributor
Thank yo for your active role in the tech community and sharing valuable information to us!
I would like to comment the need for the public embedding feature.
Just as background information - I work for a vocational college with roughly 400+ staff and 10000 students ranging from 16-60 years of age and 20 different vocational branches. We also have many different ways of studying (classroom, online, hybrid, apprenticeship...). We have M365 package for everyone. Intranet is based on Sharepoint, public website on Wordpress, LMS on Moodle. In addition we use many different formats / platforms (for example H5P, ThingLink...) with our study materials, marketing, communication and so on.
Couple of principles we are trying to go by.
- No OneDrive for materials (Video or otherwise) because of the risk of all the links and embeddings dying when the person leaves the organization.
- instead we use Teams / SharePoint sites for storeing materials and then (with proper rights - usually "everyone with a link") share links and/or embed materials from there into other platforms.
The problem is that links work but embedding does not. So there is no logical reason for embedding not working. There is no information security / data protection reason because that would cause also the linking to not work. There seems to be some rather silly technical limitation in the embedding feature that prevents embedding with "everyone with a link" / "public" kind of user right.
Every video platform (and other cloud material platform) has this feature and I'm in slight disbelief that Stream (and SharePoint in general) seems to be missing this core functionality. I would argue that most M365 customers would welcome this because they do not want to be paying and using several video platforms for different use cases.
- Marc MrozJan 20, 2024
Microsoft
T-Eskola - Sorry for my super late reply. Yeah I hear you, but we don't have the capability to have public embed codes today, sorry. We know the desire is there but we aren't working on it right now. Please continue to vote on the ideas forum and add your comments there. This idea could use more votes: Allow everyone in my organization to view an embed · Community (microsoft.com)