Forum Discussion
Test as role does not work with Single Sign-On (SSO)
- 1 year ago
Hi nn6484,
Thank you for reaching out to the Microsoft fabric community forum. Also Ritaf1983, for his inputs on this thread. I have identified few workarounds that may help resolve the issue.
The error message "Test as role does not work with Single Sign-On (SSO)" is expected when the dataset is configured to use SSO authentication, such as Azure AD SSO via Direct Query or Live Connection. In these scenarios, the “Test as role” feature is not supported because Power BI cannot impersonate user roles when SSO is active, as user identity is delegated to the data source during query execution.
Test RLS in Power BI Desktop: This is the most reliable approach for validating Row-Level Security roles:- Open your .pbix file in Power BI Desktop.
- Go to Modelling > Manage Roles to review or define roles.
- Use “View as Roles” to simulate how data will appear for users in each role.
- Once verified, publish the report to the Power BI Service.
Test in the Service Using Real Users: You can assign users to roles in the Power BI Service:
- In the dataset’s security settings, assign users to their appropriate roles.
- Share the report with test users and have them access it directly.
- This will reflect the data as filtered by their assigned role and works with SSO.
Kindly please look into below mentioned image:
Kindly refer to the below following links for better understanding:
Test single sign-on (SSO) configuration - Power BI | Microsoft Learn
Row-level security (RLS) with Power BI - Microsoft Fabric | Microsoft Learn
Kindly refer to the below solved solution for better understanding:
Solved: Re: Test as role does not work with Single Sign-On... - Microsoft Fabric Community
If this post helps, then please give us ‘Kudos’ and consider Accept it as a solution to help the other members find it more quickly.Thank you for using Microsoft Community Forum.
Hi nn6484,
I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank you.
Hi nn6484,
I hope this information is helpful. Please let me know if you have any further questions or if you'd like to discuss this further. If this answers your question, please Accept it as a solution and give it a 'Kudos' so others can find it easily.
Thank you.