A3 BAD User is authenticated but not connected

Vinay Sharma 50 Reputation points
2024-03-01T05:52:16.09+00:00

Hi all, I am running multiple times the same code using the JavaMail library and Java.

I am using the URL: "https://login.microsoftonline.com/{tenant-id}/oauth2/v2.0/token" for generating tokens from both Client-Credentials and ROPC (Resource Owner Password Credentials) to authenticate.

The authentication is successful but while reading mail through the code in response, it fails intermittently. It returns success sometimes and sometimes it throws an error "A3 BAD User is authenticated but not connected" with the same credentials. The probability of throwing the error is 28%.

Questions:

  1. What is the reason behind this error?
  2. How can I fix this issue on my side?
Microsoft 365
Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
3,999 questions
Outlook
Outlook
A family of Microsoft email and calendar products.
3,142 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,913 questions
Outlook Management
Outlook Management
Outlook: A family of Microsoft email and calendar products.Management: The act or process of organizing, handling, directing or controlling something.
4,958 questions
{count} votes