microsoft / o365-moodle

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

Sharepoint Course Folder Not Appearing Under Repository #2527

Open plutolms opened 8 months ago

plutolms commented 8 months ago

Hi there,

I'm working on Moodle 3.11. I've successfully connected OpenID Connect to Microsoft, and I have successfully installed the repository plugin. However, the Sharepoint course folder is not appearing under the repository. I can only see the OneDrive option.

Please may you assist me with the above matter.

Thank you.

nenorojas commented 8 months ago

Hi @plutolms ,

To see the files from SharePoint Documents Folder that is connected to the course, do the following:

  1. Go to Site administration -> Plugins -> Repositories -> Manage repositories and make sure that the Microsoft 365 repository is Enabled and visible (see screenshot ms365.png) and the checkbox Disable Groups (Courses) folder in file picker is NOT selected: image

  2. Go to the course connected with the Microsoft Team.

  3. Ensure that the Moodle user we use is connected to the Microsoft account.

  4. Ensure that the Moodle user we use has access to the SharePoint files of the connected team (i.e., is a member of that Microsoft Team).

  5. Run some File Picker, click on the Microsoft 365 tab, go to Groups (Courses), select the Team folder connected with the course, go to Course Files, go to General (see screenshot m365-filepicker.png).

  6. SharePoint files should be displayed.

image

The easiest way to go to the Sharepoint document folder is using the Microsoft block https://moodle.org/plugins/block_microsoft and click on the option "Onedrive files", that should open a link similar to this:

https://**_microsofttenant_**.sharepoint.com/sites/**_tenantmoodlecoursename_**/Shared%20Documents/Forms/AllItems.aspx

image

Please let us know if this helps.

Regards

JuaniV2002 commented 7 months ago

Hi there,

I'm currently working on Moodle 4.3.3. I'm in the same situation as @plutolms, everything seems to work fine. The Disable Groups checkbox is not ticked, and I have also downloaded the Microsoft Block extension, and ticked all the checkboxes in its configuration page on Moodle. Anyhow, there must be something wrong bc when, at the file picker, I click on the "OneDrive for Business" repository, nothing shows up. That's curious because, at the same time, I'm still logged in into OneDrive and I can see al my stuff. And even though I sign out of my own OneDrive, at the OD for Business repository nothing has happened. Maybe I have to do some work on the MS Teams settings.

Thank you in advance for your help