cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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.

Highlighted
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.

January 2020 Community Highlights

January 2020 Community Highlights

Make sure you didn't miss any of the things that happened in the community in January!

Top Solution Authors