Setup in Azure
To connect your parser using OAuth 2.0 in VSA you will have to set up the Outbound Email App in your Azure Portal. Login to https://portal.azure.com using your global administrator credentials.
App Registration
Refer to the below steps/screenshots to register the app.
- On your Home page, Under Azure services, Click on Azure Active Directory
- Under Manage on the left-hand navigation menu, Choose App Registrations > New registration
-
Register an Application, provide a name
- Supported account types: Option 2, Accounts in any organizational directory (Any Azure AD directory - Multitenant)
- As we are not performing any Oauth authentication on the VSA interface we don’t need to fill the redirect URI
- Click Register
- Copy the Application (client) ID and Directory (tenant) ID from the screen and save it on your notepad
- We will now need to provide Authentication and give API permissions for this app registration in order to access the mailboxes
Authentication
- Under Manage on the left-hand navigation menu, Choose Authentication
- Select Yes for Enable the following mobile and desktop flows
- Save
API Permissions
- On the left-hand side under Manage, Navigate to API Permissions
- Add the permission
- On the Request API permission screen Select Microsoft Graph
- In Graph API choose Delegated permissions
-
Permissions needed here are
- User.Read
- POP.AccessAsUser.All
- IMAP.AccessAsUser.All
- offline_access
- SMTP.Send
- Click on Grant admin consent for user and the status for all these permissions will be set to green.
Owners
- Make sure the user you are utilizing for the outbound email is an owner of the application.
Setup in Microsoft O365
User Permission for Mail
- On the Microsoft 365 admin center, Navigate to User -> Active Users.
- Select the User you are going to use for the outbound email.
- Here go ahead and make sure that the user's MFA is disabled. Oauth 2.0 does not support MFA-enabled accounts.
- Also, make sure that the user has a licensed mailbox and active subscription.
- In the user information go ahead and click on the Mail tab.
- Once here go ahead and select Email apps. Make sure that the user has all the email apps allowed.
Setup in VSA
Outbound Email Set Up
- Go to the System Module within VSA and then proceed over to the Outbound Email section.
- Click on General and then on Edit to open the email configuration.
- Set up the Outbound Email with the following settings.
- Host Name*: smtp.office365.com
- Port: 587
- Username: [Email address]
- Password: [your mailbox password]
- Select Enable OAuth 2.0 Authentication
- Application Id: [Azure application client ID]
- Directory Id: [Directory (tenant) ID]
- Select the checkbox for Require SSL?
- For the Default Sender add the email address same as above.