How to Configure OAuth 2.0 Authentication for Office 365/Outlook Mail

This section provides information about how to configure OAuth 2.0 authentication for Office 365/Outlook Mail.

Follow these steps:

  1. Log into the Azure Portal.
  2. If you have access to multiple tenants, click the Directories + subscriptions filter in the top menu to switch to the tenant in which you want to register the application.
  3. To register an application, follow these steps:
    1. To navigate to the App registrations page, do one of the following:
      • From the left pane, select Microsoft Entra ID, and then click App registrations.
      • Search for App registrations in the search bar, and then select App registrations.
    2. On the Arcserve- App registrations page, click New registration.
    3. On the Register an Application page, do the following, and then click Register:
      • Name - Enter a display name for the application.
      • Supported account types – Select the Accounts in any organizational directory (Any Microsoft Entra ID tenant - Multitenant) and personal Microsoft accounts (e.g. Skype, Xbox) option as a supported account type.
    4. After the registration is completed, the app registration's Overview page appears and displays the Application (client) ID. Use the client ID for email settings in UDP application.
  4. The application is registered successfully.
  5. To configure platform settings, do the following:
    1. Under Manage, select Authentication.
    2. On the Authentication page, click Add a platform.
    3. On the Configure platforms dialog, under Web applications, select the Web box.
    4. Under redirect URIs, specify the following redirect URIs, and then click Configure:
    5. Notes:
      • Configure the redirect URIs based on the domain name and port used for logging in.
      • Redirect URIs must start with https or http://localhost. The http protocol is supported only for localhost URIs.
    6. Click Save to complete the platform configuration.
    7. Notes:
      • When you add the redirect URI for the first time and click Configure, the platform settings get saved automatically, and the Save button remains disabled.
      • After you click Configure and try to add another redirect URI on the Platform configurations page, the Save button gets enabled. Click Save to save the settings.
    8. The platform settings are configured successfully.
  6. To get the client secret, follow these steps:
    1. Under Manage, select Certificates & secrets.
    2. On the Certificates & secrets page, click New client secret to add a new client secret.
    3. On the Add a client secret page, enter a description, select an expiry interval from the drop-down list as needed, and then click Add.
    4. Note: We recommend that you select the 24 months option as the expiry interval to avoid generating the client secret repeatedly.
    5. The client secret value displays.
    6. Important! Copy and save the client secret value as you cannot retrieve it later. If you forget to save the value, delete the existing client secret, and create a new client secret as mentioned in step 6.

  7. To configure API permissions, follow these steps:
    1. Under Manage, select API permissions.
    2. On the API Permissions page, click Microsoft Graph.
    3. On the Request API permissions dialog, select the Delegated permissions box.
    4. Select the SMTP.Send and offline_access permissions, and then click Update permissions.
    5. To grant admin consent to the SMTP permission, click Grant Admin Consent for <tenant name>.
    6. Note: The Grant admin consent for <tenant name> option is enabled only if you have enabled the SMTP authentication for the mailbox to be used. You can enable (or disable) SMTP authentication for each mailbox in the Microsoft 365 admin center. For more information about how to enable SMTP authentication for the mailbox, see Enable SMTP Authentication.
    7. A confirmation message appears.
    8. Click Yes on the confirmation dialog.

    The admin consent is added successfully for the required permissions.

  8. After configuring all the required Microsoft Entra ID application settings, go to UDP application, and then navigate to settings > Email and Alert Configuration. To configure email alerts, see How to Configure Email and Alert.

The OAuth 2.0 authentication is configured successfully for Office 365/Outlook Mail.