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.
2076 sites
80 fans
Current versions available: 11

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 Cheryl Schmelzer
    Fri, Feb 8, 2019, 6:28 AM
    When we sync users from Azure AD to our Moodle site, we must be able to include the user's manager (Azure Manager field); however, Manager is not available in the AD drop down list in the plugin? Can this field be added - and can we link it to a Manager field in Moodle? Thank you.
  • Picture of Kashyap Kr
    Thu, Feb 14, 2019, 2:41 PM
    Hi, I'm facing issues with the plugin like when first time I login with O365 account it prompts me to edit the fields instead taking to the profile/dashboard. Second issue is I'm not able to get the user profile fields from o365 like the reporting manager and the designation/role. Can u please fix this ASAP.
  • Photo ID
    Fri, Feb 15, 2019, 6:37 PM

    Version (2018051706) causes three 404 errors because the plugin tries to load the Segoe font on EVERY page of Moodle but the path define in style page is not valid (local \ o365 \ style.css, lines 1 to 30)

    404 Requests URL:
  • Picture of Kashyap Kr
    Thu, Feb 28, 2019, 3:18 PM
    Hi, I need help regarding O365 profile card to moodle fields like the orga chart.
  • Picture of Fab Lor
    Wed, Mar 6, 2019, 11:59 AM
    Hi, maybe someone can help with this question:
    I was able to configure the plugin but when a Office 365 user logins for the first time, moodle takes him to the profile page, and unless the user clicks on the update button, it will let the user continues. Why is this happening? Is there something Im missing? Why moodle thinks there is some profile information missing?
    Thank you
  • Picture of Eric Breton
    Fri, Apr 12, 2019, 10:45 PM
    Hello, can you tell us if the plugin will support version 3.6 of Moodle in a near future ?
  • Picture of Frédérique Seillec
    Tue, May 21, 2019, 9:27 PM

    I have an API Error and I don't understand why

    mode_checksetup:unified: Erreur d'appel API. Data: Array ( [file] => /home/clients/a8114442c81c1e98c5eed34ea0c75c52/web/moodle-schooltech/local/o365/classes/rest/o365api.php [line] => 262 [message] => Erreur d'appel API. [debuginfo] => [errorcode] => erroro365apibadcall [module] => local_o365 )

    ocal_o365\rest\unified::get_application_info:1130: Bad response received Data: (string)
    Bad Request
    HTTP Error 400. The request is badly formed.

    Could you help me ?
  • Picture of Ricardo Poyato
    Tue, Jun 4, 2019, 9:33 PM

    I have a problem with the sync / update and I don't know if it is a bug or a config problem.
    I can create users in AAD and then get synced/created in moodle database but when I change some data in AAD (user department) I can't get that user sync/updated in the moodle database.

    Anybody with the same case?

    Thanks so much.

    Ubuntu 18.04
    Moodle 3.6.3 (Build: 20190311)
    Integración de Microsoft Office 365
  • Picture of Nadia Festa
    Tue, Jul 30, 2019, 5:02 PM
    I need to sync a custom field of Azure AD not shown in the User Field Mapping list.
    How can I customize this feature?
    Thanks so much

  • Picture of Robert Vogel
    Wed, Aug 14, 2019, 12:31 AM
    Hello Team,
    how can I sync Team Guest users to Moodle ?
    I invited people to Teams as Guest Users, but they were not synced to the Moodle db.
    Thanks for your feedback
  • Picture of Rahul Kumar
    Fri, Sep 13, 2019, 6:06 PM
    Hi Office Plugin Team,
    I would like to know that,office 365 support integration with Totara Learn LMS. I am looking forward to hearing from you
  • Picture of Kimmo Kiiskinen
    Thu, Oct 24, 2019, 5:44 PM

    can you update the latest version here in, they are not up to date with the versions in git.
  • Picture of Rémi BARRIERE
    Mon, Jan 20, 2020, 6:19 PM

    I am with a moodle version 3.7.
    I have the following message in the reports:
    API failure
    local_o365 \ rest \ azuread :: assign_user: 301: Error response received. Data: Array ([code] => ResourceNotFound [message] => Invalid version: [innerError] => Array ([request-id] => 7ef75c6f-2eaa-4a62-a801-fcc570b4e12a [date] = > 2020-01-20T09: 23: 07))
    Is there a solution ?
  • Picture of Nadjib Abbidi
    Thu, Feb 6, 2020, 1:40 PM
    Hi everybody,
    We are using Moodle 3.8+ and I can't find a file to download for version 3.8. Any suggestions please?
    Thanks in advance.
  • 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.
1 2 3 4 5 6 7 8
Please login to post comments