Forum Discussion
skakara
Microsoft Employee
10 years agoHow 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
Community Support
10 years agoHi 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 ago
Community 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