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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
andrehawari
Helper II
Helper II

Getting Usergroup in the Active Directory

Hi, 

I am using power bi service that connected to azure analysis services using live connection.

 

I need a function that similar like function : username(), but to retreive the user group that the username belongs to.

 

For ex: use username() function I can get string like : john@contoso.com

John@contoso.com is under AD group managergroup@contoso.com --> this one is the value I want

 

Any suggestion how to do that in dax ?

 

Thanks

1 REPLY 1
v-juanli-msft
Community Support
Community Support

Hi @andrehawari

By tests, I'm afraid that we may not use DAX expressions to get Azure AD group currently in Power BI.

You can do this in PowerShell pretty easily.

Get AD group

Gets the members of an Active Directory group

 

 

Best Regards

Maggie

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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