Microsoft will stop supporting basic authentication for fetching emails from an Office 365 outlook account. To resolve that problem, nService added support for Microsoft's OAuth2. Please upgrade to 4.45 or newer. Make sure you run all upgrade sql scripts from your version of nService.

https://avensoft.com/helpdesk/Article/ArtDetailPage.aspx?artID=148

In order to use MS OAuth to fetch emails, you need to register the nService application in your Azure Active Directory / Microsoft Extra ID, App Registrations. Sign in to your Azure account, go to App Registrations and add a new app. You can then get your Tenant ID, client ID and secret. Make sure you add the nService URL to the allowed redirect URI list. Something like:

https://your-com.com/nService4/Email/EmSettingsPage.aspx
https://your-com.com/nService4/Service/ServiceEditPage.aspx

To enable it in nService, sign into nService as an administrator. Go to Admin, Email Settings and enter the settings from above. Note, the tenant ID is below the client ID on the screenshot below.





Make sure you assign these API permissions to the app.



Article #1519
Attachments:
ms-oauth.png (95308 bytes)
permission.png (10994 bytes)
Keywords:
Office 365, OAuth, Exchange, oauth, exchange online
Updated On: 4/28/2024 Index
Was this article helpful? Yes | No