General plugins (Local): Microsoft Office 365 Integration

Maintained by Picture of Enovation Dev TeamEnovation Dev Team, Picture of James McQuillanJames McQuillan, Picture of Zion BrewerZion Brewer, Picture of Nima MojganiNima Mojgani
This plugin provides libraries and services that power other Office 365 plugins.
4157 sites
96 fans
Current versions available: 13

Office 365 Plugins for Moodle

Microsoft Office 365 Integration Local Plugin

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

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

This plugin is updated with stable releases. To follow active development on GitHub, click here.

⚠️ IMPORTANT NOTICE - immediate action required if your site uses Moodle and Microsoft Teams integration

The stable release of the Google Chrome web browser (build 80, scheduled for release on February 4, 2020) features a change in how cookies are handled. This will include two changes:

  • Cookies without a '''SameSite''' attribute will be treated as SameSite=Lax.
  • Cookies with '''SameSite=None''' must also specify '''Secure''', meaning they require a secure context.

The changes are explained in and

Moodle and Microsoft Teams integration will be affected by this change, because the integration requires embedding Moodle pages in Teams. There is an open item in Moodle Tracker about this change in broader context at, but the code change proposed in the tracker item didn't get integrated in time for the last minor Moodle upgrade before Chrome 80 release date. As a result, all sites using Moodle and Microsoft Teams integration feature are strongly suggested to apply the patches proposed in the tracker item so that users with Chrome 80 can keep using Moodle tabs in Teams after upgrade.

  • Patches are provided for all Moodle versions that are supported for core feature and security issues, i.e. 3.5, 3.6, 3.7 and 3.8.
  • Patches are only required before this is integrated into the next Moodle minor release of the Moodle versions, which is scheduled at March 9th, 2020.
  • After the next Moodle minor release, the patch should be removed as it would be integration into core Moodle code.


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 Office 365.


Screenshot #0
Screenshot #1
Screenshot #2


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

Comments RSS

Show comments
  • Picture of Lai Wei
    Thu, Feb 6, 2020, 5:08 PM
    Hi Nadjib, Moodle 3.8 version of the plugin is being tested now and will be released in the coming weeks. Please check back here soon.
  • Picture of Dillon Esterhuizen
    Fri, Mar 6, 2020, 9:19 PM
    Hey Lai Wei

    Do you perhaps know if there's an estimated time of arrival for when we might get the 3.8 version of this plugin? Would love to know.


    Kind regards,
  • Picture of Lai Wei
    Fri, Mar 6, 2020, 10:26 PM
    Hi Dillon,

    We expect it to be released in no more than 2 weeks time.

  • Picture of Wakou Tahara
    Wed, Apr 8, 2020, 5:06 PM
    Thank you for all your work!
  • Picture of Marco Renoldi
    Fri, Apr 17, 2020, 5:21 PM
    Hi there. I'm trying to configure Office365 integration but cannot configure The system API user cause i get an Internal Server Error. Anyone can help please?
    I'm on moodle 3.03 and the relative Office plugin
  • Picture of Dillon Esterhuizen
    Wed, May 13, 2020, 4:49 PM
    Hey Lai Wei

    Thanks for sorting this out!

    I know it's really early but I was wondering if you perhaps had an ETA on the Moodle 3.9 version as well? If you don't have a specific date right now, that's okay. But perhaps knowing it takes you 1/2/3/4 months after a Moodle version is released to update and test this plugin, will help me have a rough idea as well.

    Thanks again!

    Kind regards,
  • Picture of Oswaldo Rojas
    Wed, May 13, 2020, 7:26 PM
    Hi Dillon,

    Moodle 3.9 code initial stable version will be released in June. We expect to release the compatible versions of the plugins to 3.9 later June or early July maximum.

  • Picture of Dillon Esterhuizen
    Wed, May 13, 2020, 8:36 PM
    Hey Oswaldo

    Thanks so much for the quick response! I appreciate it and all of the work you are doing.

    Kind regards,
  • Picture of Martin Hauzenberger
    Sat, May 30, 2020, 1:57 AM
    Hi, since yesterday we´ve problems with usersync. The main problem is that the Plugin config says that Usertoken of System-API could not call. I should run Health Check but this says all is ok. The properties are correct. Have someone an idea what we could try? Or is there a known problem on microsoft servers?

    Our moodle run on Ubuntu 18.04LTS
    Moodle Version 3.5.7+
    local_o365 2018051710

    best regards
  • Picture of aashish kumawat
    Mon, Jul 6, 2020, 4:28 PM
    please learn here
  • Picture of Matt Long
    Wed, Jul 8, 2020, 1:50 AM
    We've recently added this plugin to our Moodle installation and have synced successfully with our O365 environment. We're running into a problem whenever we try to sync new courses with Teams. We've had about 2 courses work successfully and the rest have failed. When I go to Teams Sync->Customize group and turn on syncing for a new course, nothing happens. If I go into the course page and click the Course Group link in the Microsoft block, I see this message: "This Office 365 group will be created shortly, please try again later." It never actually gets created, though, even though the cron task is running every few minutes. If I use the "Resync users for groups in courses" option under Maintenance Tools, I'll see an error message like this for the course:

    Syncing group membership for course #529
    Syncing to group "{"
    Could not sync course 529. Reason: Error in API call: Invalid object identifier '{'.

    We're using Moodle 3.5 and version 2018051700 of the O365 plugin.

    Is this a known problem? The sync has worked in two courses, but we have not figured out why it's not working in all the others. I did confirm that all the users in the problematic courses had connected their Moodle accounts to O365 before attempting the sync.

    We would love to have this working consistently as a number of our instructors are asking for it in their classes. Thanks for any help!

  • Picture of Adam Shearman
    Wed, Jul 15, 2020, 9:56 PM
    Hi all,
    Looking to set up the moodle tab within teams.
    While reading the documentation, there's note of creating an azure app for this purpose.
    Am i right in assuming this is a separate app to what would be used for the OpenID connect section on the "Setup" tab? The one where we assign to users to allow them to authenticate with Moodle?
  • Picture of Oswaldo Rojas
    Wed, Jul 15, 2020, 10:17 PM

    Martin Hauzenberger Fri, May 29, 2020, 6:57 PM
    Please raise all issues in this page:

    Matt Long Tue, Jul 7, 2020, 6:50 PM
    Please raise all issues in this page:

    Adam Shearman Wed, Jul 15, 2020, 2:56 PM
    That's correct, please check more details in this page (videos 1 and 5).
    First application is for SSO via auth_oidc and second application is required to complete the deployment to Azure.

    Moodle 3.9 version of plugins should be released by the end of this week.

  • Sudeep
    Wed, Jul 29, 2020, 6:48 PM
    As per the specification, this plugin is compatible on Moodle 3.5
    Can I install the same on Moodle 3.8 ?
    Will there be any issue in authentication ?
    I want this to be clarified before getting an account in Microsoft Azure.
    Also, If anyone has any idea of the pricing for this Authentication, please let me know.

    Thanks in Advance
  • Picture of Agnar Gudmundsson
    Sat, Aug 8, 2020, 9:26 PM
    I have installed Moodle 3.9.1+ and integration as suggested - all working fine, courses going to Teams - but when I download the Teams app, upload to Teams, and I add it to a Team - I get Something went wrong. How do I troubleshoot this issue?
1 2 3 4 5 6 7 8 9
Please login to post comments