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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
nssidhu
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
v-shex-msft
Community Support
Community Support

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
If this post helps, please consider accept as solution to help other members find it more quickly.

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.

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
If this post helps, please consider accept as solution to help other members find it more quickly.

There is not table.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors