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, then please consider Accept it as the solution to help the other members find it more quickly.



For learning resources/Release notes, please visit: | |
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, then please consider Accept it as the solution to help the other members find it more quickly.



For learning resources/Release notes, please visit: | |

Helpful resources

Announcements
Back to School Contest

Back to School Contest

Engage and empower students with Power BI!

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Summit Australia 2019

Summit Australia 2019

Travel to Melbourne and network with thousands of peers!

Top Ideas
Users Online
Currently online: 237 members 2,425 guests
Please welcome our newest community members: