Connect-ExchangeOnline
New-AuthenticationPolicy -Name "AllowBasicAuthPolicy"

Set-AuthenticationPolicy -Identity "AllowBasicAuthPolicy" -AllowBasicAuthSMTP:$true
Set-User -Identity "USER-UPN" -AuthenticationPolicy  "AllowBasicAuthPolicy"