The basic steps are found in the release notes for ITPAM 4.3.05 CP08, and ITPAM 4.4 CP02. This document adds a little more detail to the instructions already given.
IT Process Automation 4.3 SP05 CP06 or higher and 4.4 CP02 or higher
Install-Module -Name ExchangeOnlineManagement
Import-module ExchangeOnlineManagement
Connect-ExchangeOnline -Organization <tenantId>
$MyApp = Get-AzureADServicePrincipal -SearchString "ITPAM Mail Trigger"
New-ServicePrincipal -AppId $MyApp.AppID -ServiceID $MyApp.ObjectId -DisplayName "Service Principal for IMAP APP"
Add-MailboxPermission -Identity "[email protected]" -User $MyApp.ObjectId -AccessRights FullAccess
We are leaving this validated internally for now as we double check with L2 to verify all the steps are correct. As soon as this is confirmed we will publish externally.