25,081 questions
Can you check, if the user has assigned with a Multi-Factor Authentication license in Azure Active Directory? If not, the error can be occurred. Assign the license and try again to see if resolves the issue
----------
--please don't forget to upvote
and Accept as answer
if the reply is helpful--