ADSTS50126: Error validating credentials due to invalid username or password.

Azure Test 0 Reputation points

After enforcing MFA on all our accounts. AADSTS50126: Error validating credentials due to invalid username or password. Trace ID: 09282f14-c544-4add-8b8d-879b53651900 Correlation ID: 70cf9394-3914-4708-b2d9-b08688c6f20e Timestamp: 2024-05-07 17:03:15Z

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,798 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,805 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Yakun Huang-MSFT 705 Reputation points Microsoft Vendor

    Hi @Azure Test

    If you've enabled Multi-Factor Authentication (MFA) for the account, it cannot run in the background and requires interactive login. If you're trying to use this account in a non-interactive context (e.g., a service account), consider creating a separate account without MFA enabled for such scenarios.

    Hope this helps.

    If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.