March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
I have report which uses a composite data model, with a mix between DirectQuery to other Power BI datasets and some imported tables from SQL Server. The model also uses calculation groups, allthough I do not think this is related to the issue.
The data model also has RLS, and I can test this in desktop and it works as intended.
However, when I publish the report to the service and I want to "test as role", I get the following error message.
Is this a bug, or is "test as role" really not supported for a composite model?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @daaa ,
Please check if SSO is enabled. The Test as role/View as role feature doesn't work for DirectQuery models with single sign-on (SSO) enabled.
Through my testing, dq schema connection to sql server data source mixed with import schema of sql server's composite model, RLS takes effect. lc schema connection to power bi dataset then converted to dq schema and then mixed with import schema data source, RLS is not supported.
Refer: Row-level security (RLS) with Power BI - Power BI | Microsoft Learn
Use composite models in Power BI Desktop - Power BI | Microsoft Learn
Best Regards,
Community Support Team _ Neeko