In organizations where 2-factor authentication is enabled,
Some applications ( Skype, external apps ... ) that can't require 2FA, need a special app password
How to generate an application password:
- Login to portal.office.com
- Click on your account icon
- Go to the Security basics page and sign in to your Microsoft account.
- Select More security options.
- Under App passwords, select Create a new app password.
A new app password is generated and appears on your screen. - Enter this app password where you would enter your normal Microsoft account password in the application.
Source:
https://www.dcccd.edu/resources/online-services/password/pages/set-up-mobile-for-email.aspx