Home > Forum > Tips&Tricks > Using Row Level Security for PowerBI reports

Using Row Level Security for PowerBI reports
0

Hi everybody,

I was wondering if it is possible to use row level security for build in PowerBI reports on a dashboard?

Or more concrete:
Each Workflow element in Webcon has rights defined, i.e. who can see an element and its attachments or not.
Is it possible to achieve the same in an embedded PowerBI report, e.g. looking at the PowerBI report an idividual only sees the data of the elements where he has "read" permissions?

A solution here would help me tremendously to increase acceptance inhouse.

Kind regards,
Klaus

MVP

Hi Klaus,
if it should mimic 'current' access to document as is in Webcon, then it's as "simple" as joining with WFSecurities, CacheOrganizationStructureGroupRelations, and CacheOrganizationStructure, then just filter by current user using USERPRINCIPALNAME() or USERNAME() DAX functions.

An example query how to join with WFSecurities can be found here: https://github.com/lumenn/webcon-privileges-lookup/blob/main/PrivilegesLookupQuery.sql

It might be on the heavy side of queries, especially if there are some aggregates, but that's how you could technically achieve it.

It's not a db level row security though, and if user would connect to the db directly, then nothing stops them from querying anything else (but this goes for whole platform).