Microsoft OneDrive plugin embeed content

Hi ,
This is my first post. I work for a nonprofit organization and we use openedex platform to public our e-learning courses or moocs.
Starting from 2024 we choose Microsoft 365 as our mayor service provider, we upload content to one drive business accounts and we would to upload or better says embeed it into our courses hosted on openedex.
We usually used google drive that permit embeed with iframe, seems that in Microsoft that is not possible.
I saw some documentation about Microsoft LTI integration but I would know your opinion or better experience on this .

Many thanks in advance.

Francesco

Dears,

anyone can help me on this?
There’s some alternative to embeed One Drive PDF into a OpenEDX page?

Many thanks

Hello @Apez84,

For embedding PDFs directly into Open edX courses, I recommend saving the PDF files in the Files & Uploads section in Studio and using the PDF XBlock to embed them within your course pages. This approach ensures a seamless display and integration of your content directly on the platform.

You can follow these documentation links for guidance on using the PDF XBlock:

I hope this information can be helpful

Regards,

1 Like

Many thanks @CatalinaMoralesor for your suggestion, I’ll try this option.
For other documents? Like office file? And if I would to share a folder with documents?
All of these from Microsoft one drive source?

Many thanks again.

Francesco

Some one can help me? Seems really strange that with OpenEdx and Microsoft One Drive there’s not an official addon or similar to embeed documents.

Thanks

I could be mistaken but as far as I’m aware it’s not possible to embed into an iFrame with an entire folder, only individual files. It’s possible that embedding iframes is also disabled by default in the SharePoint admin center, might be some settings to adjust there too, though I’m not entirely confident about this…

Assuming there’s nothing explicitly blocking it then you can open up your OneDrive/SharePoint online, browse to the folder containing your file(s) and open a file online in the browser, click the 3 dots and Embed


This will then show you an embeddable link you can use:

You’ll also have to manage the online sharing permissions to ensure that users within your Org (or specified users only) are able to access the files (or “Anyone with the link” if you expect users outside the org to access as well). Be very careful about sharing security depending on the nature of the information they contain and who should be allowed according to your company policies.
If you want to test the embeddable link in your browser before putting it onto your site, here’s some crude sample code that you can save as a *.html file and open it to test:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>OneDrive/SharePoint Folder Embed Test</title>
</head>
<body>
    <h1>Embedded OneDrive/SharePoint Folder</h1>
    <p>If the iFrame is working, you should see the contents of your OneDrive or SharePoint folder below.</p>

	<iframe 
        src="https://xxxx-my.sharepoint.com/personal/xxxxxxx/_layouts/15/embed.aspx?UniqueId=xxxxxxxxxxxxxxxxxxxxxxxxxxx" 
		width="640" 
		height="360" 
		frameborder="0" 
		scrolling="no" 
		allowfullscreen 
		title="xxxxxxxx">
	</iframe>

    <p>End of the iFrame content.</p>
</body>
</html>


Hope this helps :slight_smile: good luck

Many thanks @joel.edwards with your help and example,
unfortunatelly when I try the embeeded link the output is “refused to connect”

In this case permission is for everyone just read.

I think Sharepoint block that use, for this reason I was thinking that there’s some Addin for OpenEDX to include in other way the O365 Microsoft files.

This is a problem for us.

Yes, I get the same error when I share content from our organisation’s SharePoint, but if I share it from my personal OneDrive then it works. I expect there’s some setting that might need to be updated in the SharePoint Admin Center, though I’m not exactly familiar with it…

Yes I know, for Personal one it works !

I’ll open a new case on Microsoft Supporto.

@joel.edwards So you don’t know any addin to embeed One Drive or Sharepoint files?