Forum Discussion

erwiegman's avatar
erwiegman
Regular Visitor
6 years ago

Problems with Auth2, Azure AD and SQL Row level security not working

Hi Community


I have a problem with Azure AD authentication in PowerBI to pass through to an Azure SQL Database with row level security configured. When i connect to the SQL database everything works like i should and the user get the filtered data. When i create the report in Power BI desktop also everything works as expected.

 

But when i publish the report to the PowerBI service and set the 'Report viewers access this data source with their own Power BI identities in DirectQuery mode' option (and succesful do the authentication thing after the apply). I cannot see the data in my report. It gives the error 'Login failed for user '<token-identified principal>'.. The exception was raised by the IDbConnection interface.' 

 

I'm doing something wrong, but i cannot seem to find the problem (and google isnt helping this time ;). So is there someone out there already solved this last piece of the puzzle ? 

4 Replies