Any problem with robot script doing multi-factor authentication to Microsoft Dynamics 365

Hi Anh,

Solving the 2FA question always starts with how does the 2FA work? This is going to vary depending on your organisation’s security policy, is the second factor a:

  • SMS message?
  • an email?
  • an RSA key using a physical device or the RSA smart phone app?
  • a physical swipe card
  • something else

Because there are so many ways 2FA can be implemented there is no one library or way to deal with it.

If you are testing the application (Microsoft Dynamics365 in this case) and not the 2FA system, the easiest way to deal with 2FA is to have your security team disable it for your test accounts.

If you can’t simply disable 2FA for your test accounts then when you know which method is being used we can try to offer some suggestions for that delivery method.

Hope that helps,

Dave.