Adding an app password in Microsoft 365

An old scanner that scans to e-mail, an older mail app or a script that sends mail over SMTP: such applications don't support multi-factor authentication (MFA). An app password is a long, random password that such an application uses instead of your normal password and MFA. This article shows when app passwords still work in Microsoft 365, how to create and delete them, and why you are better off replacing them with a more modern solution.

App passwords only work with legacy per-user MFA, not with security defaults or Conditional Access. On top of that, Microsoft turns off basic authentication for SMTP AUTH in Exchange Online at the end of December 2026. This article explains what that means and which alternatives exist.

When do app passwords work?

In practice an app password today mainly still works for SMTP AUTH (sending mail through smtp.office365.com) and for some older applications.

SMTP AUTH: what changes in 2026?

Microsoft turns off basic authentication for SMTP AUTH (client submission) in Exchange Online by default at the end of December 2026. Administrators can temporarily turn it back on after that; Microsoft will announce the final end date in the second half of 2027. New tenants can no longer use it from then on. So convert scanners and applications that send mail with a user name and (app) password now.

Create an app password (as a user)

  1. Go to mysignins.microsoft.com/security-info.
  2. Click Add sign-in method and choose App password.
  3. Give it a name, for example Scanner 2nd floor, and click Next.
  4. Copy the password and enter it in the application. You only see it once.

Don't see App password in the list? Then per-user MFA isn't enabled for your account, or your administrator hasn't allowed app passwords.

Adding an app password in security info

Allow app passwords (as an administrator)

  1. Go to the Microsoft Entra admin center > Entra ID > Users > Per-user MFA.
  2. Open Service settings.
  3. Choose Allow users to create app passwords to sign in to non-browser apps and click Save.
Allowing app passwords in the MFA service settings

Delete an app password

Go to Security info, find the app password and click Delete. Delete app passwords you no longer use, especially when a device is gone or someone leaves the organization.

Better alternatives

SituationAlternative
Old mail app or Outlook versionUse an app with modern authentication, such as the new Outlook or Outlook mobile
Scanner or printer that scans to e-mailFirmware update with OAuth, scan to OneDrive/SharePoint, or SMTP relay through a connector in Exchange Online
Application that sends notificationsOAuth for SMTP, Microsoft Graph (sendMail), High Volume Email or Azure Communication Services
ScriptMicrosoft Graph with an app registration or managed identity

Tips

Read also

Security defaults in Microsoft Entra ID: what they do and how to enable them
How to set the password expiration policy in Microsoft 365
How to encrypt or protect an e-mail in Outlook and Microsoft 365

Nederlandstalige versie: App-wachtwoorden in Microsoft 365: aanmaken, verwijderen en vervangen


More in English