I recently implemented Multifactor authentication for our O365/Azure users. Our users connect to Azure Portal and Office 365 using a variety of client apps. These applications handle MFA differently. I also needed to update Office 365 to allow modern authentication. This was required because Outlook 2016 for Windows was unable to add my Office 365 email account without modern authentication.
- Enable MFA using Azure Active Directory: https://docs.microsoft.com/en-us/azure/active-directory/authentication/howto-mfa-mfasettings It also describes how to generate App Passwords. App Passwords are required for Office 365 clients that cannot handle MFA. App Password actually bypass MFA so use them only if needed.
- I tried to add my office 365 account in the mail client for my IPhone. To my surprise it allowed my to enter my password and MFA code to configure my mail account. It did not require using App passwords.
- I tried to add my Office 365 account to Outlook 2016 on windows 10. It failed to add my account and did not show a helpful message.
- To resolve above issue I had to enable modern authentication on my office 365 tenants. The steps were:
- Connect with Exchange Online PowerShell using the steps below: https://docs.microsoft.com/en-us/powershell/exchange/exchange-online/connect-to-exchange-online-powershell/connect-to-exchange-online-powershell?view=exchange-ps When you run the script you will need to use your App Password to authenticate with Office 365
- Once you are successfully connected you can view your current settings for OAuth2ClientProfileEnabled using the command:
- After enabling OAuth2ClientProfileEnabled I was able to successfully add my Office 365 email account to Outlook 2016 on Windows.
Set-OrganizationConfig -OAuth2ClientProfileEnabled $true
Get-OrganizationConfig | Format-Table -Auto Name,OAuth*