Hi @edss testt ,
Thanks for your feedback above which shared more information and glad to know that your issue is resolved now! Since our forum has the policy that the question author cannot accept their own answer. They can only accept answers by others, and according to the scenario introduced here: Answering your own questions on Microsoft Q&A
I would make a brief summary of this post so that other forum members could easily find useful information here:
Issue Symptom:
IMAP returning "BAD User is authenticated but not connected."
Solution:
MS disabled access using the old scopes and re-enabled them.
Going forward does anyone know the "correct" scopes we should be requesting from our users to allow IMAP access?
You can refer to this article to learn about scopes and permissions in the identity platform:
Scopes and permissions in the Microsoft identity platform
In addition, we recommend that you post in the Microsoft Graph Mail API for more appropriate assistance.
You could "Accept Answer" for this summary to close this thread, and your action would be helpful to other users who encounter the same issue and read this thread. Thanks for your understanding!