...
Select API Permissions in the left-hand navigations under Mange.
Click on ➕ Add a permission , and then click on tab APIs my organization uses.
Search for API name Office 365 Exchange Online.
On the screen you will see two buttons on the screen Delegated Permissions and Application Permissions for the above API.
Select Application Permissions.
Under the Application Permissions search for the IMAP permission and select IMAP.AccessAsApp permission.
At last click on Add permissions.
Also grant the Microsoft Graph → User.read permission (this is the default permission added everytime).
...
Open the Microsoft API’s Tab and click on MicrosoftGraph
Select Delegated Permissions
Search for Mail.ReadWrite.Shared permission and click on Add Permission
Mail.ReadWrite.Shared - This permission allow us to read and write emails from main/shared account. using write permission we only mark/update email as read once our service successfully process the email.
Once permission is added click on Grant admin consent for MST (Note: Only admins have rights to grant the permission once added)
After permission is granted the status of the permission should be like this Granted for MSFT
That’s it all the necessary permissions are configured.
Old permissions that were configured:-
https://graph.microsoft.com/User.Read (To read the user basic detail like email)
https://ps.outlook.com/IMAP.AccessAsApp (To read the user emails from outlook)
...
The API permission requires admin consent if you yourself don’t have admin rights.
(Note: Don’t remove the above two already configured permission because it might require again if new implementation doesn’t work as expected)
New permission that need to be configured:-
...
Generate client secrets
Once the API permissions are added to the registered application, it's time to generate the client secrets.
...
Once Register Application, API Permission and Generate client secrets all three of this steps are completed you can start setting up outlook account in the communication channel.
...
Setup communication channel (Video)
...