If you are getting the below message:
Go into Office 365 -> Security and Compliance -> Threat Management -> Review -> Restricted Users and unblock the user. Change their password and/or enable dual factor authentication if they were compromised. If it was because of a program having issues, no need for the password reset.