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
Anonymous
Not applicable

Pulling AD userID

Hi,

 

I have a table in my database with userid and the departments associated with it.

What I need to do is, get the AD user logged on to Power BI and match it with my table in database and display only specific departments to that user.

Any idea how do I get the AD user id.

Online, I could only find content related to bringing the AD data into powerBI. I want to do it without pulling the whole of AD data.

 

Thanks in advance.

 

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

The USERPRINCIPALNAME() function in DAX gives you the email address of the user.  What you are trying to do sounds a lot like RLS (Row Level Security) - have you looked into that?

View solution in original post

2 REPLIES 2
lbendlin
Super User
Super User

The USERPRINCIPALNAME() function in DAX gives you the email address of the user.  What you are trying to do sounds a lot like RLS (Row Level Security) - have you looked into that?

Anonymous
Not applicable

Thanks,

I will check this.

Ya, I am trying to implement row level security.

 

 

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.