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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
Anonymous
Not applicable

RLS does not work

The data I have I get from AD. It's a default table which I've added some columns to

UserManagerIdManager IDLoginOrg Level 1Org Level 2Org Level 3PathPath User
AB12a@company.comc@company.comb@company.coma@company.com3|2|1A|B|C
BC23b@company.comc@company.comb@company.com 3|2B|C
C 3 c@company.comc@company.com  3C

 

But when I add RLS it just does not work.

If I view the role as 'User' I only can see myself (User B), not the people below me.

If I view the role as 'Other User' it does not matter what I put in there, I still can see everyone. There is just no filtering on the user table.

 

I've tried the following dax codes in my RLS user table:

 

 

 

PATHCONTAINS(
User[Path User],
LOOKUPVALUE(
User[User],
User[Login],
USERPRINCIPALNAME()
)
)
-----------------------------------------------------------------------------------------------------------------------------------------------
PATHCONTAINS(User[User],
MaxX(
Filter(
User,
[Login]=USERPRINCIPALNAME()
)
, User[User]
)
)
-----------------------------------------------------------------------------------------------------------------------------------------------
VAR Agents =
CALCULATETABLE (
VALUES ( 'User'[User] ),
'user'[Manager] = USERNAME())

RETURN
IF('Agent name'[login] IN Agents, TRUE, FALSE)
-----------------------------------------------------------------------------------------------------------------------------------------------
LOOKUPVALUE(
User[User],
User[User],
RIGHT(USERNAME(), USERNAME())

-----------------------------------------------------------------------------------------------------------------------------------------------
[Login] = USERPRINCIPALNAME()
|| [Org Level 3] = USERPRINCIPALNAME()
|| [Org Level 2] = USERPRINCIPALNAME()
|| [Org Level 1] = USERPRINCIPALNAME()

 

 

 

With all I have the same result

 

3 REPLIES 3
v-diye-msft
Community Support
Community Support

Hi @Anonymous 

 

Kindly check below blog whether helps:

 

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

https://radacad.com/dynamic-row-level-security-with-organizational-hierarchy-power-bi 

 

 

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

@Anonymous , Refer if this can help

https://www.blue-granite.com/blog/using-dynamic-row-level-security-with-organizational-hierarchies

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hi @amitchandak  Thank you for the link, unfortunaly I've already tried his solution which also did not work (see last dax query)

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.