Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
stuti
New Member

Help required to implement security via a user information table

I have use case where in user should be able to filter and view data by a

security matrix

stuti_0-1681905346553.png     

User Information table  

stuti_2-1681905633429.png

The report is expected to identify the current logged in user and accordingly filter the data in the report by conditions verified by security matrix and available as in user information

Example:

Tom being a Team Head should be able to 

1. see all Jurisidction applicable when Team - Engineer 

2. see only Engineer as the value in Slicer for Team whereas all values for Jurisdiction slicer when blank 

Slicers are sourced from dimension tables Team & Jurisdiction.

I have tried to create measure that captures values individually for team & jurisdiction for the logged in user via USERPRINCIPALNAME() however this works well to filter out the slicers but not on visuals that include Field Parameters aka combination of attributes.

User Team =
VAR _Team =
CALCULATETABLE(
    VALUES(UserInfo[Team]),
    UserInfo[User] = "Tom@abc.com") -- to be changed to USERPRINCIPALNAME()
RETURN
IF( VALUES(Team[Team]) IN _Team,1,0)

 

Welcoming any suggestions on data modelling or approaches or ideas to implement it.

Link to sample pbix for reference - Sample PBIX 

 

Thanks

1 REPLY 1
v-zhangti
Community Support
Community Support

Hi, @stuti 

 

Please refer to the following links in the hopes of helping you.
Solved: Dynamic RLS - Microsoft Power BI Community

Row Level Security with SSAS Tabular Live Connection in Power BI - RADACAD

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors