Install
Works with Drupal: ^9.4 || ^10 || ^11Using Composer to manage Drupal site dependencies
Alternative installation files
Release notes
This release adds a new feature that makes it possible to use multiple connectors. This has been added in #3295745: Make it possible to use multiple Office 365 connectors (6.x). Some changes will be updated in a update hook, but others will need some manual work.
To use this you need to change the structure of the config in the settings file. The old structure was:
$settings['o365']['api_settings']['client_id'] = '<client_id>';
$settings['o365']['api_settings']['client_secret'] = '<client_secret>';
$settings['o365']['api_settings']['tenant_id'] = '<tenant_id>';
The new structure will be this:
$settings['o365'] = [
'<connector-1-id>' => [
'client_id' =>'<client_id>',
'client_secret' => '<client_secret>',
'tenant_id' => '<tenant_id>',
],
'<connector-2-id>' => [
'client_id' =>'<client_id>',
'client_secret' => '<client_secret>',
'tenant_id' => '<tenant_id>',
],
];
The connector id can be found on https://www.example.com/admin/config/system/o365/settings/o365-connectors when you edit the available connectors. You need to use the machine name. For existing instances this will most likely be "default" because this is created during the update hook.
Also keep in mind the change in the return URL. This needs to be configured in the Azure app and will have the connector id added to the url.