Forum Discussion
How Can I Access the RLS Data in a Semantic Model and Report on it?
- 4 months ago
How about two easy DAX queries?
EVALUATEINFO.ROLES()EVALUATEINFO.ROLEMEMBERSHIPS()That can be run against the semantic models in your workspace, from any place that can run DAX.
You can also use standard DMV queries to get that meta data.
My reading has highlighted that DMV alone is insufficient for my use case. It will only give me the RLS roles and DAX filters. I would need to use APIs to get the user associated with those roles. A different option that’s been suggested to maintain a governance SharePoint file for the users, but this seems counterintuitive. In order to build that I need to examine every role in every report to see who the users are, which is the problem I’m trying to solve!
- lbendlin4 months agoSuper User
I would need to use APIs to get the user associated with those rolesIs that not viable for you? Are you looking for a ready-made auditing solution? If this is important to you please consider voting for an existing idea or raising a new one at https://ideas.fabric.microsoft.com
- MJG21124 months agoAdvocate II
I have no experience with either DMV or APIs for this problem.
- lbendlin4 months agoSuper User
How about two easy DAX queries?
EVALUATEINFO.ROLES()EVALUATEINFO.ROLEMEMBERSHIPS()That can be run against the semantic models in your workspace, from any place that can run DAX.