cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
nssidhu Frequent Visitor
Frequent Visitor

How to find Logged in users AD Group in DAX

In DAX Expression i want to find out if logged in user is a memeber of Specific Group. 

How can i find that ?

4 REPLIES 4
Community Support Team
Community Support Team

Re: How to find Logged in users AD Group in DAX

HI @nssidhu ,

 

Please share more detail information to help us clarify your data structure and coding formula. Is there any table fields stored log status and group info?

 

Regards,
Xiaoxin Sheng

Community Support Team _ Xiaoxin Sheng
If this post helps, please consider Accept it as the solution to help the other members find it more quickly
Learning resources: Power BI
nssidhu Frequent Visitor
Frequent Visitor

Re: How to find Logged in users AD Group in DAX

There is not table.

nssidhu Frequent Visitor
Frequent Visitor

Re: How to find Logged in users AD Group in DAX

The question is about comparing the Loggedin user(USERPRINCIPALNAME() ) to check if belongs to a specific Role in a Power BI Service.
Member are added to Role in Power BI Service. There is no table.

Psudo Code
Power BI Service Role "SuperAdmin" with the following Members

        user1@company.com
        user2@company.com

 

I want to Check if USERPRINCIPALNAME() is equal to one of the member in "SuperAdmin" Role in DAX Formula.

Community Support Team
Community Support Team

Re: How to find Logged in users AD Group in DAX

Hi @nssidhu ,

 

Maybe you can try to set up username mapping table with rls based on username/userprincipalname function:

RLS with UserName()

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin Sheng
If this post helps, please consider Accept it as the solution to help the other members find it more quickly
Learning resources: Power BI

Helpful resources

Announcements
Exclusive LIVE Community Event #3 – Ask Arun Anything

Exclusive LIVE Community Event #3 – Ask Arun Anything

Join us in the third Triple A event!

Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

Super User Challenge: Can You Solve These?

Super User Challenge: Can You Solve These?

We're celebrating the start of the New Super User season with our first ever Super User 'Can You Solve These?' challenge.

Power BI Desktop Update - February 2020

Power BI Desktop Update - February 2020

We are super excited for our update this month, as we are releasing two of our top community requests!

Power Platform Online Conference

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

Top Solution Authors