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
dan_johnson
Frequent Visitor

How do I assign a hierarchy of viewer permissions based on filters?

I would like to assign a heirarchy of viewer permissions per the following example:

 

Each Manager can only view the performance of their direct reports 

Each Manager cannot view the data of other Managers and their direct reports

The Senior Manager can view all of their reporting Managers and direct reports

 

I have a filter for Senior Manager by name and filter for Manager by name beneath it

 

My goal is when the Manager/Senior Manager views the report they do not have the option to view other Managers data.

How can I achieve this?

 

Much appreciated,

Dan

1 ACCEPTED SOLUTION
v-lili6-msft
Community Support
Community Support

hi, @dan_johnson

USERNAME() function returns the username from the credentials given to the system at connection time.

and for your case, you could use USERNAME() function with Row-level security (RLS).

here is some reference:

https://docs.microsoft.com/en-us/power-bi/service-admin-rls

http://radacad.com/dynamic-row-level-security-with-manager-level-access-in-power-bi

http://radacad.com/row-level-security-configuration-in-power-bi-desktop

 Please understand that this link is provided “AS IS” with no warranties or guarantees of content changes, and confers no rights.

 

Best Regards,
Lin

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

View solution in original post

3 REPLIES 3
v-lili6-msft
Community Support
Community Support

hi, @dan_johnson

USERNAME() function returns the username from the credentials given to the system at connection time.

and for your case, you could use USERNAME() function with Row-level security (RLS).

here is some reference:

https://docs.microsoft.com/en-us/power-bi/service-admin-rls

http://radacad.com/dynamic-row-level-security-with-manager-level-access-in-power-bi

http://radacad.com/row-level-security-configuration-in-power-bi-desktop

 Please understand that this link is provided “AS IS” with no warranties or guarantees of content changes, and confers no rights.

 

Best Regards,
Lin

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

Thank you Lin,

 

This is very helpful!

 

Dan

MFelix
Super User
Super User

Hi @dan_johnson

You need to setup the row level security.

Check the link below.

https://docs.microsoft.com/en-us/power-bi/service-admin-rls

Regards,
MFelix

Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



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.