Forum Discussion
skakara
10 years agoMicrosoft Employee
How to find UserName in a custom visual
I'm building a custom visual and I need to identify the logged in user's email. How can I do it? Thanks
v-chuncz-msft
10 years agoCommunity Support
Hi skakara,
Currently, playing with powerbi.session.userInfo in custom visual may not be reliable. See https://github.com/Microsoft/PowerBI-visuals/issues/412.
nivasnalla
8 years agoFrequent Visitor
Do we have any update on this?
- v-viig8 years agoCommunity Champion
Power BI Custom Visuals API does not provide user name or user email.
We recommend to use DAX function to get user's email.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals