Microsoft 365 Repository

Repositories ::: repository_office365
Maintained by Enovation Dev Team, James McQuillan, Zion Brewer, Nima Mojgani
This plugin provides access to Microsoft 365 as a repository. Specifically, includes OneDrive for Business, Office Video, Office Delve as well as SharePoint Document Libraries and Group Files associated with Moodle courses.
Latest release:
3188 sites
65 fans
Current versions available: 6

Microsoft 365 Plugins for Moodle

Microsoft 365 Repository Plugin

This plugin provides access to Microsoft 365 as a repository. Specifically it includes OneDrive for Business, Office Video, Office Delve as well as SharePoint Document Libraries and Group Files associated with Moodle courses.

This is part of the suite of Microsoft 365 plugins for Moodle.

To follow active development on GitHub, or to find historical versions, click here.

This plugin is updated with stable Moodle releasesThis means as of October 2022:

  • The versions for Moodle 3.11 and 4.0 gets full support. Any new features are guaranteed to be added to these two versions.
  • The version for Moodle 3.9 gets security support. New features are not to be added to this version, but some bug fixes may be added.
  • All other versions, included the one for Moodle 3.10, are out of support.

Questions and issue reporting

Github should be used for reporting issues found when configuring or using the plugin, and to ask questions. The comments area on this page is not actively monitored.


Before we can accept your pull request, you'll need to electronically complete Microsoft's Contributor License Agreement. If you've done this for other Microsoft projects, then you're already covered.

Why a CLA? (from the FSF)


(c) Microsoft, Inc.

Code for this plugin is licensed under the GPLv3 license.

Any Microsoft trademarks and logos included in these plugins are property of Microsoft and should not be reused, redistributed, modified, repurposed, or otherwise altered or used outside of this plugin.


This plugin is part of set Microsoft 365.


Screenshot #0


Enovation Dev Team (Lead maintainer)
Vinayak (Vin) Bhalerao
Akinsaya Delamarre
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Fri, Feb 5, 2016, 2:23 AM
    I am not able to get the One drive for Business to show the personal storage. Was able to get it working for the course. URL in Local_o365 plugin set to:
    Is there something I need to set on Azure, or could it be a permission issue?
  • Mon, Feb 22, 2016, 3:53 PM
    Hi Rene,

    Can you run the "Azure setup" tool in the Office 365 local plugin? It should report if there are any permission issues. If everything checks out, can you enable the "Record debug messages" setting on that same settings page, click Save changes, then try to access your OneDrive Moodle repository again? If you still don't see any files, go to Site administration > Reports > Logs, change "All activities" to "Site errors", and click "Get these logs". If there are any Office 365-related messages, can you send them to me (in a private message), and we can go from there. Thanks!
  • Pedro Renan
    Wed, Jul 6, 2016, 12:12 PM
    Problem on the line 983 of the file local/o365/classes/rest/sharepoint.php I replaced $offsetsize = 8192 * 1024 for $offsetsize = 8388608
  • Wed, Jul 27, 2016, 3:00 AM
    Hi Pedro - This should be resolved in the latest release. Please upgrade and let me know if you continue to experience problems. Thanks!
  • Thu, Jul 28, 2016, 8:52 PM
    I'm having a bit of a problem with getting the Repository to work. Everything is green on the 365 integration and I have linked the Moodle and Office 365 account, but when I try to add an attachment in the File picker i just get "No files available". I've been at it a few days and not sure what more I can do. Any thoughts on how I can debug further?
  • Thu, Jul 28, 2016, 8:59 PM
    We're having the same problem with the file picker. Everything is connected fine, can get to files using the Microsoft block but the Repository is not working - "No files available" and no errors anywhere.
  • Fri, Aug 5, 2016, 3:54 AM
    We seem to be having the same problem with the file picker that Eric and Sue are having. Eric or Sue, were you able to resolve your issues?
  • Sat, Aug 6, 2016, 2:43 AM
    Eric + Sue - contacted you directly, however it's probably useful to note here - for everyone having trouble accessing OneDrive in the latest release. We've identified this as a bug and will have a release ready shortly to resolve the problem. Enabling the Microsoft Graph API (both in the options tab of the Office 365 local plugin and in Azure) should resolve the problem immediately. Remember to run the "Azure setup" tool on the setup tab of the Office 365 local plugin after enabling the Graph API to get the plugin to detect the new API.
  • Thu, Oct 20, 2016, 8:44 PM
    Apologies for the delay in replying, we left it alone over the summer break (I only work term time) and have only just got back to looking at it. With the new versions of these plugins we were able to connect to Microsoft via the block and then get the repository file picker running correctly. My only question now is regarding the calendar options in the block where I can get things to sync from Moodle to the 365 calendar, but not anything feeding back to Moodle from 365. Any suggestions?
  • Tue, Oct 25, 2016, 2:38 AM
    @sue - sent you a message
  • Mon, Aug 7, 2017, 9:21 PM
    hello there! I'm trying to use just the repository part of this as we do not use AZURE active directory. Is this possible at all?? Thanks in advance for your help....
  • Wed, Oct 18, 2017, 10:35 PM
    Is it possible if, when we upload a file from the filepicker and choose "Create an alias/shortcut to the file", this file not to open via the SharePoint but via moodle? Can we remove this restriction that only 365 authenticated users can access the file?
    Thank you,
  • Fri, Apr 12, 2019, 10:30 PM
    Hello, can you tell us if the plugin will support version 3.6 of Moodle in a near future ?
  • Fri, Oct 18, 2019, 4:50 PM
    James, is it possible that your looking at integrating access control links within the repository plugin? It seems strange students create duplicates of their submitted for Moodle when this can be managed via a more efficient methid.

  • Sat, Apr 18, 2020, 4:28 AM
    Dear, I have integrated Microsoft 365 with Moodle everything is working correctly for the login and from the selector you can see OneDrive files of each user.
    However when a student is going to upload a task in the file selector they can see their OneDrive files but it does not show the options to link the file or upload a copy directly to moodle.
    It does not allow me to link from the file picker when loading assignments by students.
    I would appreciate help with this problem.

    Best regards.
1 2
Please login to post comments