Microsoft 365 Integration

General plugins (Local) ::: local_o365
Maintained by Enovation Dev Team, James McQuillan, Zion Brewer, Nima Mojgani
This plugin provides libraries and services that power other Microsoft 365 plugins.
Latest release:
5314 sites
119 fans
Current versions available: 12

Microsoft 365 Plugins for Moodle

Microsoft 365 Integration Local Plugin

This plugin provides libraries and services and power other Microsoft 365 plugins.

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

To follow active development on GitHub, click here.

This plugin is updated with stable Moodle releases. This means:

  • New features, bug fixes for general core bugs, and security issues for all plugin versions for Moodle 3.9.x and earlier versions have ended, with the following exception:
    • Bug fixes for security issues for Moodle 3.9.x versions will end 8 May 2023.
  • For plugin versions for Moodle 3.10:
    • New features and full support until November 2021.
    • Bug fixes for security issues until May 2022.
  • For plugin versions for Moodle 3.11 (to be released in July 2021):
    • New features and full support until May 2022.
    • Bug fixes for security issues until November 2022.


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
Screenshot #1
Screenshot #2
Screenshot #3
Screenshot #4
Screenshot #5


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

Comments RSS


  • Mon, Jun 29, 2015, 10:56 PM
    @Jessica - There was an update to the permissions on the Azure side that caused this. The latest version of the plugins should resolve the issue. Can you update and verify? Thanks!
  • Mon, Jun 29, 2015, 10:57 PM
    @Jean-Pierre Thanks for the report, I have this on the list for the next release. Are you noticing any other problems from this other than the message?
  • Mon, Jun 29, 2015, 11:00 PM
    @Daniel Actually users can now connect to Office365 without using AzureAD to log in. There is now a "Connect to Office 365" in the Office365 Connection profile field. Click that as an existing Moodle user will give you the option to connect to Office365 without using AzureAD to log in. Hope that helps!
  • Tue, Jun 30, 2015, 12:53 AM
    Hi James,

    I don't notice any problems so far - but I hate messages of this kind wink

  • Tue, Jun 30, 2015, 12:56 AM
    Me too and it will be fixed, just wanted to make sure you can still use the plugins smile
  • Fri, Jul 10, 2015, 9:43 PM
    Just installed the Office 365 suite of plugins and now I cannot Add a New Course... the page is blank underneath the heading.
    Turned on debugging and these are the messages I get:

    Warning: require_once(/var/www/moodle/local/msaccount/msaccount_client.php): failed to open stream: No such file or directory in /var/www/moodle/local/onenote/classes/api/msaccount.php on line 30

    Fatal error: require_once(): Failed opening required '/var/www/moodle/local/msaccount/msaccount_client.php' (include_path='/var/www/moodle/lib/zend:/var/www/moodle/lib/pear:.:/usr/share/pear:/usr/share/php') in /var/www/moodle/local/onenote/classes/api/msaccount.php on line 30

    Moodle 2.9

    Any suggestions?


  • Mon, Jul 13, 2015, 12:10 PM
    @bobby - Have you installed the msaccount plugin? ( It should be listed as a dependency when installing the plugin set - which plugins have you installed?
  • Sat, Jul 18, 2015, 1:56 AM
    Is the plugins able to convert existing SharePoint sub-sites into Moodle classes? If already has some sub-sites under it (e.g. will that be picked up as a Moodle class?
  • Sat, Jul 18, 2015, 7:21 PM
    Application permissions question

    In setting up plugin "Microsoft Office 365 Integration" /admin/settings.php?section=local_o365 there is all lines green except Application Permissions (local_o365 | detectperms)

    Check permissions in AzureAD. In clicking Update it will give more information:

    Check permissions in AzureAD
    View and modify OneNote notebooks
    View OneNote notebooks
    Create pages in OneNote notebooks
    To fix this automatically, your system API user must be an administrator, and the "Access your organization's directory" permission must be enabled in Azure for the "Windows Azure Active Directory" application. Unified API: This is a beta API required for "Create User Groups" Unified API not present, some new features may not work.

    In doing dobule check,
    API user is global addministator for Office 365 account and so for Azure AD directory.
    Application have permissionss like this:
    Excange Delegated perm; R user calendars,RW user calendars;
    Sharepoint Delegated perm: R items in all site collections, RW items in all site collections, R user files, RW user files, full control all site collections;
    Azure AD applications perm: R directory data,
    Azure AD Delegated perm: R directory data, enable sing-on and R user profiles.

    Thank you in advance help provided

  • Wed, Jul 22, 2015, 1:20 AM
    @Ivan - The plugin won't convert existing SharePoint subsites into Moodle courses, it's a one-way process from Moodle to SharePoint.
  • Wed, Jul 22, 2015, 1:21 AM
    @Rein - You should be generally good to go, it looks like you're just missing some preview features. The unified API and OneNote are currently in preview and are not yet widely available. All other features should work fine without these though.
  • Sun, Jul 26, 2015, 12:30 AM
    After installing this only the moodle default admin account has the "connected to Office 365" link enable and available to use. All other accounts which are a local type despite changing the authentication for a user to Open connect ID and then testing that they are being autheticated via Office 365 (which they are) in that user's profile page I can only see the text "user not connected to Office 365" , if I go to https://mydomain/local/o365/ucp.php I can see the connect to office 365 link but clicking on it changes nothing of the above in the profile pages, what am I doing wrong?
  • Thu, Jul 30, 2015, 11:24 PM
    Hi Rob, There is currently a bug in the indicator - do the users who are authenticated with OpenID Connect but don't see the "Connected to Office365" test have any problems actually using the features? (I.e. can they access their OneDrive through the repository?)
  • Wed, Aug 5, 2015, 12:16 AM
    Hi James,
    I am logged in as another user, they have OpenId as their authentication type in their profile, i can log into moodle with their creds, go to a course they are the teacher of, add a resource select file, and when I go to add a file I can see one Drive for Business as an option from the file picker, I can see their OneDrive for business folders bit not files, i.e a word file which is sitting in OneDrive. Is there any other way to view the OneDrive repository other than when uploading a file?
  • Wed, Aug 5, 2015, 1:43 AM
    Hi Rob, When you using the OneDrive repository from within a course, it starts off in that course's document repository. You should see the breadcrumb above the file area say "OneDrive for Business > Courses > [shortname of the course you're in]." If you click the "OneDrive for Business" link in the breadcrumbs here you'll be taken to the index page for the repository. Here you should see "My Files" and "Courses" folders. If you enter the "My Files" folder, the user will see the files in their OneDrive.
Please login to post comments