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:
5498 sites
122 fans
Current versions available: 8

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


  • Thu, Jan 28, 2021, 11:27 PM
    I'm also trying to make use of the Middle Name field, which is available in SDS, but apparently not in Azure or for mapping in Moodle?
  • Wed, May 5, 2021, 2:30 PM
    I also posted this in issues, not sure what the appropriate channel for these types of questions are so sorry if I come accross as spamming, not my intention!

    We are currently using the plugin for Azure AD synchronisation on a standard Moodle setup.
    Pretty soon we will be moving to a Moodle Workplace environment.
    In order to make use of the extended functionality (e.g. approval workflow etc) I'm looking for a way to integrate things like role, manager etc). Based on the screenshot on this plugin page (specifically the third one from the left) it seems to be able to do that. However, I cannot fidn a way to map the fields as the destination fields as shown in the screenshot are not available to me (looking on the standard moodle setup).

    Is this because the data is not yet in the AD feed? Is it because Moodle standard cannot store that info (and the screenshot is from a Moodle workplace environment?) or ......

    Looking for some tips to solve this and to configure the feed

    Thanks in regards!
  • Mon, May 24, 2021, 1:37 PM
    Dear Moodlers,

    After installing local_o365 (V 3.10.1) plugin on Moodle (V 3.10.3+), when I try to edit the settings of any course, I receive the below error

    "Exception - Argument 1 passed to local_365\feature\usergroups\coursegroups::_construct() must be an instance of local_o365\rest\unified, bool given, called in [dirroot]/local/o365/observers.php on line 621

    Any idea what seems the problem ?
  • Thu, May 27, 2021, 8:18 PM
    Any idea ?
  • Thu, May 27, 2021, 10:22 PM
    Hi Mario, the issue is tracked in Please temporary solution in it, or wait for it to be fixed in the next release.

  • Wed, Jun 30, 2021, 9:01 PM
    Version 3.10.2 (2020110902) not working with Azure AD sync: Error in API call: Access token validation failure. Invalid audience.
  • Wed, Jun 30, 2021, 9:26 PM
    Hi Jarmo, can you please raise the issue on including the version of the local_o365 being used?
  • Fri, Aug 6, 2021, 6:02 PM
    Any update on v3.11 compatibility? The announcement says it was to be released in July.
  • Fri, Aug 6, 2021, 6:39 PM
    Hi @Shubhendra, Moodle 3.11 version of the plugin is still work in progress. It took longer than we originally expected. It should be ready by the end of September the latest.
  • Tue, Aug 17, 2021, 12:51 AM
    Hi, just wanted to check if this plugin along with the Teams Theme plugin will work with Microsoft Teams Live Events? Teams Live Events are an extension of Teams Meetings.
  • Mon, Feb 7, 2022, 9:14 PM
    After the successful integration of Microsoft 365 Integration, when we run " Sync users with Azure AD" fro scheduled task its fail and gives msg as follows
    " Execute scheduled task: Sync users with Azure AD (local_o365\task\usersync)
    ... started 17:00:05. Current memory use 12.9MB.
    ...... Starting sync "
    The same proble we face when we run -> Create user groups in Microsoft 365
    the reslu is as follows
    " Execute scheduled task: Create user groups in Microsoft 365 (local_o365\task\groupcreate)
    ... started 13:03:15. Current memory use 12.9MB."

    please guide to solve this issue

  • Tue, Feb 8, 2022, 2:41 AM
    Is there anyway to change the Moodle username being used. I do not want it set to email address as I have 3rd party software that uses the moodle username which is just the first part of their email address.
  • Tue, Feb 8, 2022, 5:29 PM
    Hi Majid, Shammer and Lori, please raise your questions and issues via github issues page mentioning your Moodle version and plugins version so we can investigate and get back to you. Regards
  • Mon, Mar 28, 2022, 11:23 PM
    Hi, Thanks for all your work on these Plugins. Not sure where to ask this question (of if even appropriate on Github), as not strictly an issue more of an unknown. Forgive me as I have just been asked to look into this as previous developer\admin has left suddenly. $plugin->release = '3.9.0';$plugin->version = 2020071500; Moodle version 3.9. Situation where a Teams site that was created via Moodle To teams integration but has been deleted (over 90 days ago) before teachers flagged so cannot restore. However, within the mdl_local_o365_objects]
    where (type = 'group') the course team exists (subtype= course; courseteam) but no 365 group or Teams site. I am unsure of how to recreate i.e. recreate the linked site this if already exists in [dbo].[mdl_local_o365_objects] table? I going to hazard a guess than absolutely not as straightforward as deleting from the is table. Any advice would be greatly appreciated (or pointing me in the right direction would be greatly appreciated)
    Thanks in advance.
  • Thu, May 19, 2022, 10:14 PM
    Hello team, I have mapped all the fields from Active Directory to moodle and it works fine. But users suspended in the ADare not suspended in Moodle. I tried many configs but does not work. Can anyone tell me what are the steps ?
Please login to post comments