"To authenticate to Microsoft 365, you must enter your Microsoft account" when you run the Remote Connectivity Analyzer tool to test connectivity to Microsoft 365

Problem

When you try to run the Microsoft Remote Connectivity Analyzer tool to test connectivity to Microsoft 365, you receive the following error message:

To authenticate to Microsoft 365, you must enter your Microsoft account. This is your User Principal Name and in many cases will be something like user@contoso.com.

Cause

This issue occurs if one or more of the following conditions are true:

  • You're using an incorrect user name.
  • Your password has expired.
  • Your user account isn't activated.

Solution

To resolve this issue, use one of the methods in the following table, as appropriate for your situation.

Cause Resolution
You're using an incorrect user name. Enter your Microsoft 365 user ID. Your Microsoft 365 user ID is your user principal name (UPN). For example, enter jane@contoso.com. If you don't know your Microsoft 365 user ID, contact the admin for help.
Your password has expired. Contact the admin at your company to reset your password. For more information, see Forgot password to sign in to Microsoft 365, Intune, or Azure.
Your user account isn't activated. To get started with Microsoft 365, you have to activate your user account. To do this, sign in to the Microsoft 365 portal (https://portal.office.com) for the first time by using your temporary password, and then create a new password to use when you sign in.

More information

Still need help? Go to Microsoft Community.