How to configure Outlook OAuth for Mail Integration
Outlook OAuth is a safe and secure way to connect Mail Integration to Microsoft Exchange Online.
- Open Microsoft Azure Portal and click on +New registration.
- Enter a name for your application a name, for example, Email Integration.
- In the Supported account types choose the second option - accounts in organizational directory and personal accounts.
- Specify Redirect URI
as
https://{account}.tpondemand.com/Admin/Plugins.aspxwhere {account}.tpondemand.com is your Targetprocess URL. - Go to API permissions section. Click +Add a permission, then select Microsoft Graph.
- Select Delegated permissions and then tick checkboxes for the next
permissions: User.Read, email,
offline_access, openid,
profile, IMAP.AccessAsUser.All and
POP.AccessAsUser.All. Note: Ensure that Access tokens flag is disabled in the Authentication settings.
-
Go to the Overview section and copy Application (client) ID.
-
Open Credentials & secrets section and click +New client secret. Add a Description, and set the Expiration date to Never.
After you add it make sure that you copy the value of this Client secret somewhere.
- Open your Targetprocess account and go to Settings >Integrations > Mail Integration. You can create a new one or use the existing profile. In the configuration, choose Outlook OAuth in Secure access method drop-down.
- Enter the Client id and Client secret values with the values you received in the 8th step. POP and IMAP protocols are both supported in Office 365 Oauth configuration now.
-
Click Sign in and follow the steps to complete the procedure.
In the Email Integration profile page, you will see green Sign out button and your email next to Client id. Click Check connection to review your settings. "Connection was established successfully" message will be displayed.
Your Mail Integration is connected to the mailbox using Outlook OAuth.