Forum Discussion

Rita2's avatar
Rita2
Regular Visitor
1 year ago
Solved

Power BI Desktop Login Error

When logging into power BI with a 21v account it reports an error. But if you log in with a PC and the network you can log in.

 

 

报错信息

抱歉,登录时遇到问题。
AADSTS5004: The user account ****** does not exist in the c21071d5-c0c4-4b90-********* directory. To sign into this application, the account must be added to the directory.

 

故障排除详细信息
如果你联系管理员,请向其发送此信息。
将信息复制到剪贴板
Request Id: f0f90ac2-0854-4748-*******
Correlation Id: 368876ce-4238-42fe-*******
Timestamp: 2025-03-21T03:09:12Z
Message: AADSTS5004: The user account ***** does not exist in the c21071d5-c0c4-4b90-8b35-1******* directory. To sign into this application, the account must be added to the directory.

 

  • Thankyou, pankajnamekar25 , for your response.

    Hi Rita2,

    We appreciate your inquiry on the Microsoft Fabric Community Forum.

    The error AADSTS5004 occurs when the user account does not exist in the Azure Active Directory (AAD) of the organisation attempting to authenticate in Power BI. This indicates that your 21v account is not recognised in the required directory.

    To resolve this issue, please follow the steps outlined below:

    1. Ensure that the user account you are attempting to log in with exists in the directory. You may confirm this by consulting your IT administrator or by checking through the Azure Active Directory portal.

    2. Since you mentioned that logging in via a particular PC and network is successful, please verify that network settings and configurations remain consistent across devices.

    3. Try accessing Power BI through a web browser instead of using Power BI Desktop.

    4. If your network employs a proxy authentication server, please ensure that the necessary domains are added to the allowlist. The required domains include: app.powerbi.com,api.powerbi.com,all domains within the *.analysis.windows.net namespace.

    5. Ensure that all redirect pages or providers in the redirect chain utilise HTTPS URLs, as this is essential for the authentication process to function correctly.

    6. If the issue persists, consider uninstalling and reinstalling Power BI Desktop.

    Should you find our response helpful, kindly mark it as the accepted solution and provide kudos. This will assist other community members facing similar concerns.

    Thank you.

5 Replies

  • v-pnaroju-msft's avatar
    v-pnaroju-msft
    Community Support

    Thankyou, pankajnamekar25 , for your response.

    Hi Rita2,

    We appreciate your inquiry on the Microsoft Fabric Community Forum.

    The error AADSTS5004 occurs when the user account does not exist in the Azure Active Directory (AAD) of the organisation attempting to authenticate in Power BI. This indicates that your 21v account is not recognised in the required directory.

    To resolve this issue, please follow the steps outlined below:

    1. Ensure that the user account you are attempting to log in with exists in the directory. You may confirm this by consulting your IT administrator or by checking through the Azure Active Directory portal.

    2. Since you mentioned that logging in via a particular PC and network is successful, please verify that network settings and configurations remain consistent across devices.

    3. Try accessing Power BI through a web browser instead of using Power BI Desktop.

    4. If your network employs a proxy authentication server, please ensure that the necessary domains are added to the allowlist. The required domains include: app.powerbi.com,api.powerbi.com,all domains within the *.analysis.windows.net namespace.

    5. Ensure that all redirect pages or providers in the redirect chain utilise HTTPS URLs, as this is essential for the authentication process to function correctly.

    6. If the issue persists, consider uninstalling and reinstalling Power BI Desktop.

    Should you find our response helpful, kindly mark it as the accepted solution and provide kudos. This will assist other community members facing similar concerns.

    Thank you.

  • Hello Rita2 

     

    make sure you have login to Power BI services (app.powerbi.com)

    then try to sign in from deskstop app

     

    Thanks,
     Pankaj Namekar | LinkedIn

    If this solution helps, please accept it and give a kudos (Like), it would be greatly appreciated.

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Rita2 ,

    May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

    Thank you.

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Rita2,

     

    Has your issue been resolved, or do you require any further information? Your feedback is valuable to us. If the solution was effective, please mark it as 'Accepted Solution' to assist other community members experiencing the same issue.

     

    Regards,

    Prasanna Kumar

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Rita2,

    Just a gentle reminder — has your issue been resolved? If so, we’d be grateful if you could mark the solution that worked as Accepted Solution, or feel free to share your own if you found a different fix.

    This not only closes the loop on your query but also helps others in the community solve similar issues faster.

    Thank you for your time and feedback!

     

    Best,

    Prasanna Kumar