Forum Discussion
How to implement line-level security in an Analysis Services model?
- Anonymous4 years ago
Hi matdub40 ,
It seems there is nothing wrong with the formula. Row-level security (RLS) with Power BI can be used to restrict data access for given users. Filters restrict data access at the row level, and you can define filters within roles. In the Power BI service, members of a workspace have access to datasets in the workspace. RLS doesn't restrict this data access.
For Analysis Services or Azure Analysis Services lives connections, you configure Row-level security in the model, not in Power BI Desktop. The security option will not show up for live connection datasets.
Please check the role in the workspace. Please check where the Y2_Stores[email] is the same as the current logged on Windows user name, and Y2_Stores[storenumber] is the same as the Y2_Sales[detail_number]).
Please check the RLS "view as a user " on the desktop.
If it still does not help , please provide your pbix file without privacy information for us testing or provide more details with screenshots.
Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi matdub40 ,
It seems there is nothing wrong with the formula. Row-level security (RLS) with Power BI can be used to restrict data access for given users. Filters restrict data access at the row level, and you can define filters within roles. In the Power BI service, members of a workspace have access to datasets in the workspace. RLS doesn't restrict this data access.
For Analysis Services or Azure Analysis Services lives connections, you configure Row-level security in the model, not in Power BI Desktop. The security option will not show up for live connection datasets.
Please check the role in the workspace. Please check where the Y2_Stores[email] is the same as the current logged on Windows user name, and Y2_Stores[storenumber] is the same as the Y2_Sales[detail_number]).
Please check the RLS "view as a user " on the desktop.
If it still does not help , please provide your pbix file without privacy information for us testing or provide more details with screenshots.
Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- matdub403 years agoHelper III
Thank you very much for your answer! Anonymous
Indeed, the members of the BI group in Azure were owners of the workspace so they could see everything.
I just made the change by putting the email as the workspace viewer and it works!What is the best thing to do because there is the workspace, the application and in this application my Power BI report which must be filtered. Where should the viewer permission be put?
Maybe add them as a reader of the report and send them the link?