microsoft / o365-moodle

Office 365 and Azure Active Directory plugins for Moodle
GNU General Public License v3.0
180 stars 136 forks source link

O365 file share using Embed code fails to work in Moodle #2634

Open PriyankaZEN opened 1 week ago

PriyankaZEN commented 1 week ago

Hello Team,

I work for Microsoft EDU Support, and I have a customer who is trying to add Embed code to Moodle page using "Source Code" addition option within Moodle. Added file just does not load. We do not have OD or SP LI integration officially supported. However, I stumbled upon a few articles that might help. ![Uploading image (46).png…]()

There are about 5K users in customers org who are using Moodle, and they want to use O365 SP as file storage location instead of local storage.

Is Embed code usage a possibility right now? Should it ideally work? I was referring below. It seems pretty old article. Hence the question on support matrix https://docs.moodle.org/22/en/Embedding_content

My customer also raised this with Moodle. and we did get an answer that its not yet available. However, we are looking for any workarounds possible to make this work. Any alternative which helps customer to use SP (SharePoint) as a storage location for the files would do. https://github.com/microsoft/o365-moodle/issues/2595

I also had a look at below article which is mentions steps on how to integrate OD (OneDrive) with Moodle and usage of embed code. However, This is not officially supported by MS. Is this something User can try? If yes, In future, If there are any issues with Integration, Would Moodle be right POC to help my customer? https://docs.moodle.org/35/en/Office365

weilai-irl commented 1 day ago

Hi @PriyankaZEN

It looks like the first image that you tried to upload didn't finish correctly.

The embedded content link in your note is for Moodle 2.2 released on 5th December, 2011. On the top of that page there's a link to the up-to-date version of the document, at https://docs.moodle.org/404/en/Media_embedding. The latest version only mentions embedding media files (audio/video), so I believe embedding other files are not supported.

The existing Moodle and Microsoft integration provided by the plugins this github repo is about doesn't contain any specific logic for SharePoint. Specifically, the repository_office365 plugin is only called some endpoints in the "Files" section (https://learn.microsoft.com/en-us/graph/api/resources/onedrive?view=graph-rest-1.0) to interact with Microsoft. Adding SharePoint support will require calling endpoints in the "Site and lists" section (https://learn.microsoft.com/en-us/graph/api/resources/sharepoint?view=graph-rest-1.0), which is a completely different set. There may be a lot of work involved in adding SharePoint support, and it's probably impractical to carry out the work in the current support contract.

I hope it clarifies things.

Regards, Lai