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

Using RLS for individual employees based on windows login

Hi there,

 

I have developed a PBI report showing employee's hours submitted on a Time Tracker application. 

My aim is for employees to be able to access this report via a Power BI Online App and only see their data. 

There are hundreds of employees so I cannot create an individual login for each.

 

When we come into work, we have a User ID and password which logs us into the network. 

 

I have User ID in my Time Tracker report, so I somehow need to reference who is logged in to that computer? 

 

Jemma

2 REPLIES 2
SteveCampbell
Memorable Member
Memorable Member

There is a DAX function called:

USERPRINCIPALNAME()

 

This will return the email (UPN) current logged in user.

 

Check out UPN part of this article to see how to use them in RLS:

Using the username() or userprincipalname() DAX function

 

Or check this atricle:

https://exceltown.com/en/tutorials/power-bi/powerbi-com-and-power-bi-desktop/dax-query-language-for-...

 

 

Love hearing about Power BI tips, jobs and news?
I love to share about these - connect with me!

Stay up to date on  linkedin-logo.png
Read my blogs on  powerbi.tips_.png



Did I answer your question? Mark my post as a solution! Proud to be a Super User!


Connect with me!
Stay up to date on  
Read my blogs on  



Anonymous
Not applicable

Thanks @SteveCampbell  i'm half-way there using the articles you shared:

 

  • I set up a role in Desktop for Username()
  • Then I published the dataset to Power BI Online

I don't know what to enter under Security in Power BI Online. I tried adding myself to the role, and testing as user and all the visualisations are blank. I'm stuck!

 

Thanks

Jemma

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.