Overview
During deployment of the Outlook Pro add-in https://catalog.m-files.com/shop/m-files-for-outlook-pro/ an issue can occur where when users try to log into the add-in, the login appears to go through successfully, but then the below error is displayed.
Solution
The reason the error above may appear is because the add-in automatically creates a multi-tenant app in the background called "M-Files for New Outlook". This app is responsible for permissions for sending and receiving emails. Currently, the app is unverified which M-Files is working to get verified with Microsoft.
There are two workarounds for this issue:
The first workaround to this is to have the Global Admin for Entra ID also be an M-Files user. This way when they first log into the add-in from Outlook, they will get a checkmark that allows them to allow/verify for all users in the organization. If they are not a Global Admin and also an M-Files user, they will either just be able to log in themselves, but they won't get the checkmark to allow all other users. Or they will get the above error seen.
https://learn.microsoft.com/en-us/entra/identity/enterprise-apps/grant-admin-consent?pivots=portal
The second workaround is:
Step 1: Login to Azure portal using Tenant Admin credentials.
Remember to replace the {organization} with the GUID from Tenant ID from Entra.
Step 3: This should make sure that the administrator gives consent on behalf of all the users.
Step 4: Ask different users to test the outlook addon.
M-Files is currently working to get this automatically created app fully documented to avoid this issue in the future as well as get it verified which would allow users to allow the app on their own.
