MS Exchange Modern Authentication

Authentication Errors with O365.

Error: Remote Exception wrapping UiPath.Mail.ExchangeException: Authentication failed for user


  1. Change the Azure app registration to configure the following,
  • The Redirect URI and use the mobile and desktop client rather than the web
  • Change the Redirect URI to the specific (urn:ietf:wg:oauth:2.0:oob)
  • Change the Redirect URI to allow the public client flows

  1. On UiPath Studio Test Automation, change
    • Change the UiPath.MicrosoftOffice365.Activities to the last version.
    • Change the UiPath.Mail.Activities to the latest.
    • Change the GetExchangeMail activity within the O365 scope to use the UsernameAndPassword authentication with the App ID and tenant ID, with the EWS URL, and Robot account credentials.