Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Work Tasks

Configure OAuth2 to Access O365 Account

  • Last UpdatedMar 21, 2025
  • 2 minute read

You can use OAuth2 authentication to access mail servers (SMTP and POP3) to send and receive the emails from the configured SMTP and POP3 servers using O365 account.

Following are the steps to configure Oauth2 to access O365 account:

1. Create a Microsoft Entra Tenant Account and purchase services from Microsoft 365

  1. Access Microsoft Azure portal to create a Microsoft Entra Tenant account.

  2. Purchase services from Microsoft 365.

  3. Navigate to Users > Active users to check if you are listed under Active users.

  4. Make sure the active user has the Mailbox permission. Also, the licences and apps permissions are activated for the user.

  5. Select Mail tab for the selected active user, select Manage Email apps, and then select the Authenticated SMTP option.

2. Register Exchange Online in the Azure Portal

For more information, refer to https://documentation.commvault.com/v11/essential/93448_registering_exchange_online_with_azure.html

  1. Log on to the Azure portal (https://portal.azure.com/) using your global administrator account.

  2. Go to Microsoft Entra ID.

  3. In the navigation pane, click App registrations.

    The App registrations page appears.

  4. Click New registration.

    The Register an application screen appears.

  5. In the Name box, type a name for the app.

  6. Under Supported account types, select Accounts in this organizational directory only (tenant_prefix - Single tenant).

  7. To verify the status of the app and to authorize the app from the Command Center, under Redirect URI, enter the Command Center URL.

  8. For example, enter https://host_name.domainname.com/commandcenter.

  9. Click Register.

  10. Copy and paste the following values in a document that you can access later:

    • Application ID

    • Directory ID

    Note: You will enter these values in the Commvault software when you complete the Office 365 guided setup.

    3. Request and Grant Permissions for Azure APIs for Azure Apps

    1. In the navigation pane, click API permissions.

    2. Click Add a permission.

    3. Click Microsoft Graph and complete the following steps:

      1. Click Application permissions.

      2. Select the following permissions:

        • Group.Read.All

        • SMTP.Send

        • User.Read

      3. Click Add permissions.

    4. On the app API permissions page, click Add a permission.

    5. Click APIs my organization uses and complete the following steps:

      1. On the search bar, type Office 365 Exchange Online.

      2. Select Office 365 Exchange Online, and then click Application permissions.

      3. Select the following permissions:

        • Group.Read.All

        • SMTP.Send

        • User.Read

      4. Click Add permissions.

    6. On the app API permissions page, click Grant admin consent for tenant_name.

      4. Create a Client Secret

      1. In the navigation pane, click Certificates & secrets.

        The Certificates & secrets page appears.

      2. Click New client secret.

        The Add a client secret dialog box appears.

      3. Enter a description, and then select the maximum value.

      4. Click Add.

      5. Copy and paste the client secret value in a document that you can access later.

        5. Register Oauth2 in the CentralConfig Site

        Access the Central Configuration site and navigate to Mail Server > SMTP Settings to register Oauth2..

        Related Links