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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Project managers to only see their projects

Hi,

 

Sorry for my rookie question.

 

I have approximately 100 project managers in my organisation. They are all registered in the O365 of the organisation.

 

If my first name is Gold and my last name Whisky my email adress would be gold.whisky@nameofmyorganisation.com  the username in O365 would be Gold Whisky.

 

I have a table with the names of all project managers, their names(in the column "Project Manager") are listed like this (all caps) : GOLD WHISKY.

 

My goal is that Gold Whisky only sees his projects, so the one with the name GOLD WHISKY in the column "Project Manager", without having to create a role for every project managers.

 

I tested [Project Manager] = USERPRINCIPALNAME() and it's not working.

 

I tested the same but changing the column Project Manager to lower case and it is not working.

 

Do you have any ideas ? How can i link o365 usernames and emails to power bi

 

Thanks you in advance

3 REPLIES 3
Anonymous
Not applicable

Hi, thanks guys for your answer, userprincipalname worked, we just had to associate emails to names by creatinmg a relation.

 

Thanks again for your advices !

amitchandak
Super User
Super User

@Anonymous , have check what USERPRINCIPALNAME() is returning and take the action

 

Also refer: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
Greg_Deckler
Community Champion
Community Champion

@Anonymous - Sounds like you are doing things correctly assuming your Project Manager column is their email address and this table has a relationship with your fact table. Try creating a measure that is simply: Measure = USERPRINCIPALNAME() and put that in a Card visualization to see what it is returning.

 

This may help: Dynamic Hierarchical Row Level Security (powerbi.com)



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.