Forum Discussion

padiga-isw's avatar
padiga-isw
Frequent Visitor
1 year ago
Solved

Getting logged in user from Power BI service

Hi Everyone, I am working on a custom connector that can interface a trino driver with Power BI Service, I am currently facing a hurdle where I want to implement a mechanism similar to SSO. I am usi...
  • Anonymous's avatar
    Anonymous
    1 year ago

    Hi padiga-isw,

     

    Thank you for reaching out to Microsoft Fabric Community Forum.

     

    Power Query M does not provide a built-in way to get the logged-in Power BI Service user dynamically.

    This function Extension.CurrentCredential[Username] may return the authenticated username. It works if your connector supports OAuth or Windows Authentication.

    It Does not work if Power BI Service does not pass credentials or using Anonymous authentication.

     

    If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it!

     

    Regards,
    Vinay Pabbu