Hi @Andriy Sedefer ,
Welcome to our forum!
By research, this error may occur when using IMAP with OAuth authentication to access Office 365 or Outlook mailboxes. Below are some possible solutions:
- Make sure "IMAP4" is added to Client Access Rules in O365, and when testing the input in O365 using Jira context, the test is completed successfully. Client Access Rules in Exchange Online | Microsoft Learn
- Complete the Authorize request using OAuth2.0 with username and password for the required email account confluence.atlassian.com Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
- Check if the mailbox is disabled or hidden from the address list. For your reference: User is authenticated but not connected - Microsoft Q&A
In addition, we recommend that you post in the Microsoft Graph - Microsoft Q&A for more appropriate assistance.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.