OAuth Mail fetching Error

OAuth Mail fetching Error

While trying to configure the mails during OAuth Configuration if you get the following error in the logs

-> microsoft.exchange.webservices.data.core.exception.service.remote.ServiceRequestException: The request failed. The request failed. The remote server returned an error: (401) 

Please follow the below steps : 

You need to perform test connectivity by following the below steps : 

 2. Select Office 365 or Exchange Server as per your setup.

 3. Select Service Account Access and perform Test. Use the credentials you have used in your mail server settings.

 When all the above mentioned are passed try the below solutions. 

 Some Solutions:

 -> In some cases issue was fixed by changing the proper details as below,

 Make sure the Scope is properly entered in the Mail server settings (Admin-Mail Server Settings). You need to provide the below mentioned URL. 

 Make sure all the other URL's provided are also correct. 


                    New to ADSelfService Plus?

                      • Related Articles

                      • Troubleshooting Oauth configuration for mail server settings

                        Oauth in ServiceDesk Plus / AssetExplorer for Mail SDP supports Oauth configuration for Office365 and GSuite mailboxes since 11106 build. Office365 mailboxes can be configured with Oauth authentication using EWS (since 11106) and IMAP / SMTP (since ...
                      • EWS Mail fetching issue - Proxy not enabled for ews. isIncoming: true

                        Issue: EWS Mail fetching issue using different tenants Error trace 1: [23:30:20:701]|[01-23-2023]|[com.adventnet.servicedesk.common.MailUtilities]|[INFO]|[73]: Proxy not enabled for ews. isIncoming: true| ...
                      • Mail fetching - deleted flag issue

                        This message will be thrown, when you have provided a shared mailbox. The concept here is, SDP MSP reads the mail from the configured mailbox and adds it as a request. During the time, if some other application fetches the mail from the same mailbox ...
                      • Problem in extracting emails via EWS from 11134

                        Emails getting fetched via EWS are getting failed to process and stops the Mail Fetching when that mail's object doesn't have InternetMessageHeaders. Note: This issue will not occur for all emails extracted via EWS except for the emails which don't ...
                      • EWS OAuth configuration with screenshots from Azure

                        In order to configure EWS OAuth configuration successfully, please follow the exact steps in the below link, https://help.servicedeskplus.com/configure-azure-as-authentication-server Note: For client secret, there would be a field called 'Value' as ...