metricsign
Start free
Low severityauthentication

Power BI Refresh Error:
AADSTS51004

What does this error mean?

The user account doesn’t exist in the directory. An application likely chose the wrong tenant to.

Common causes

  • 1Authentication configuration issue
  • 2Token validation failure

How to fix it

  1. 1Step 1: Check the Azure AD error lookup at login.microsoftonline.com/error for this code
  2. 2Step 2: Review your application's authentication configuration in Azure portal
  3. 3Step 3: Contact your Azure AD administrator if the issue persists

Frequently asked questions

What does AADSTS51004 mean?

The user account doesn’t exist in the directory. An application likely chose the wrong tenant to

How do I fix this error?

Check your application registration, token configuration, and user permissions in the Azure portal. Review Conditional Access policies if the error is policy-related.

Other authentication errors