OTRS can synchronize the out of office status of agents from Microsoft 365. When enabled, the automatic replies (out of office) settings that an agent maintains in Microsoft 365 are read via Microsoft Graph and applied to the agent’s Out of Office Time in OTRS. This way agents only have to maintain their absence in one place.
For every valid agent with an email address, the synchronization looks up the corresponding user in Microsoft 365 by email address and, unless the agent has opted out (see below), overwrites the agent’s Out of Office Time in OTRS according to the automatic replies status in Microsoft 365:
-
If automatic replies are turned off, the agent’s out of office time in OTRS is cleared.
-
If automatic replies are scheduled for a period, the agent is set out of office for that period.
-
If automatic replies are turned on permanently, the agent is set out of office without an end date. The out of office time stays active until the automatic replies are turned off again in Microsoft 365, which clears it on the next synchronization.
Megjegyzés
The feature is disabled by default. It has to be enabled explicitly, and a credential has to be configured. If the feature is disabled, or the configured credential is missing or in an invalid state, the entire synchronization is skipped and no agent’s out of office time is changed.
Agents can also opt out of the synchronization individually with the Sync Out of Office from Microsoft checkbox in their personal preferences (see personalization in the user manual). For an agent who opted out, the synchronization is skipped and the agent’s out of office time in OTRS is left untouched, regardless of the automatic replies status in Microsoft 365.
To configure the synchronization:
-
Menjen a Hitelesítési adatok képernyőre.
-
Hozzon létre egy OAuth2::MicrosoftGraphApp típusú hitelesítési adatot.
-
Menjen a Rendszerbeállítások képernyőre.
-
Search for the setting
OutOfOfficeSync::Credentialand add the name of the credential created in step #2. -
Search for the setting
OutOfOfficeSync::Enabledand enable it. -
Állítsa üzembe a beállításokat.
Once configured, the synchronization runs automatically every 15 minutes through the OTRS daemon. The schedule can be adjusted in the setting Daemon::SchedulerCronTaskManager::Task###OutOfOfficeSync.
The synchronization can also be triggered manually with the following console command:
bin/otrs.Console.pl Admin::Microsoft::OutOfOffice::SyncUsers
The command prints a summary of how many agents were processed, synchronized, skipped, and how many errors occurred. Detailed results of every run are also written to the OTRS log.
Needed permissions in Microsoft Azure:
Microsoft Graph:
-
MailboxSettings.Read-> application
