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


  • Wed, Aug 5, 2015, 2:08 AM
    Hi James,
    I have added the moodle application in Azure AD fine as per instructions written in Office 365 Services Installation on Moodle, on the Microsoft Office 365 Integration page((Site admin>plugins>local plugins>Microsoft Office 365 Integration and the constant problem I have is with the application permissions, it only shows
    Check permissions in AzureAD


    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.
    this is despite application credentials client id secret key etc are correct, and the system API user is the same as our Office 365 global admin. I have no errors on any plugins on plugins overview. In Azure AD I have assigned access to a user in Azure AD, that same use in moodle has had the authentication method changed from local to Open ID, on their profile page it says
    Office365 Connection: User is not connected to Office 365.
    Email Credentials: User is not using Email Credentials to log in.

    There is no where to change this to tell it to start using Office creds for the user. (again on the admin user)

    I cannot find any setting that is faulty, what am I doing wrong? I am running out of time to set this up for the new school year.
  • Wed, Aug 5, 2015, 3:19 AM
    @Rob Looks like you need to add permissions to the application you registered in Azure - see for the docs on this step.
  • Mon, Aug 10, 2015, 12:08 PM
    Hi there
    We appear to be most of the way there, but are you able to shed some light on the groups created in Sharepoint sites?

    All sharepoint groups matching Moodle courses have been created.
    I see that each site has a group created that is able to contribute and manage files - I assume that this will be for teachers enrolled in courses.
    A user is able to log in using Office365, and I have created some resources in the folder within the sharepoint site matching the course name from within a Moodle course that the student is logged into. He is not able to see the material as he does not have permission within the sharepoint site. Should he be able to. I wondered whether I needed to add all students as visitors to the sites, but as each site has unique permissions, this would be very time consuming.

    Thanks for any guidance.
  • Tue, Aug 11, 2015, 12:06 AM
    The SharePoint sites are current accessible only to teachers in the Moodle course. There are future plans to expand this to students and other users, but that's not available quite yet.
  • Thu, Aug 27, 2015, 7:37 PM
    Need some help sad. I have followed the guideline and everything works until I delete a synced account from Office 365 in Office 365. Although the user can't log into the system, it remains in Moodle AND it duplicates. I don't know why. Any help would be appreciated!
  • Fri, Aug 28, 2015, 2:09 AM
    Hi Marton, The next release includes an overhaul of the user sync code and this issue should be resolved.
  • Fri, Aug 28, 2015, 4:56 AM
    Thank you, that is really great to hear! smile
  • Sat, Aug 29, 2015, 9:11 PM
    We can no longer use guest access for our Moodle 2.9 site after installing the Office o365 following these instructions:

    Usually with guest login we get the "Login as guest" submit button and then a place to enter a password after pressing the button. But after configuring for Office 365 suite, a guest user clicks on the "login as guest" button which then just tells the user they have an invalid login.
    The live logs give the following error.
    Login failed for the username 'guest' for the reason with id '3'.
    This error just means that the wrong password was provided. It acts as if guest access is not even enabled as far as I can tell.

    Any ideas?

    Thank you.
  • Mon, Aug 31, 2015, 10:43 PM
    Hi Rob,

    Are you using a custom login URL? Any other modifications to the login/logout page/process? Are you using any other authentication plugins?

    I'll do some further testing with this scenario to get a good answer for you.

    Thanks for the report
  • Wed, Sep 2, 2015, 11:25 PM
    Hi James,

    Thanks for the response. There have not been any other modifications to the login/logout page/process. The only authentication plugins enabled are OpenID Connect used with the Office 365 and only Manual Accounts have users. Email based self-registration is enabled but has never been used (no users).

  • Fri, Sep 4, 2015, 12:15 AM
    Thanks Rob - What version of OpenID Connect and this local plugin are you using?
  • Tue, Sep 8, 2015, 8:32 PM
    It's version 2015060100

  • Tue, Sep 8, 2015, 11:59 PM
    Thanks Rob, I believe I have a solution for this issue that will be included in the next release. Once it's out can you give it a try and let me know whether it's resolved for you?
  • Fri, Sep 11, 2015, 7:16 AM
    Thanks James. I really appreciate it. Yes, we can definitely try it out once it's released.
  • Wed, Sep 16, 2015, 1:06 AM
    Hi James,
    At our university we implemented the plugin (connection to Office 365) succesfully with just one small issue: authentication does not work correctly when the password contains a special character (@ for example) on the first and only on the first position! Do you have an explanation for this strange behavior?
    Thanks Martin
Please login to post comments