Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello,
I am looking for a solution to get the user details of the person that is logged in to the power bi and using my custom visual. I am trying to get the user information from this object "powerbi.session.userinfo" (took it from some old answers) and I am assuming that "powerbi" is imported from " powerbi-visuals-api"(version
Hi @Anonymous,
You're not able to get the user details through the power BI visuals APIs for privacy reasons.
Visuals can only see the data that is supplied to them from the main window, so you could supply this via a measure that utilises the desired DAX function to your visual's dataset, and users of your visual would have to supply this themselves if it's a requirement.
It could also be set as a visual property via conditional formatting (which may make more sense, as this would be a scalar value)... but would still need to be via a measure that can supply results of the DAX expression to the visual.
Regards,
Daniel
Proud to be a Super User!
On how to ask a technical question, if you really want an answer (courtesy of SQLBI)
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.