Forum Discussion

PranayPanchal's avatar
PranayPanchal
Regular Visitor
3 years ago

Power BI works with Azure AD B2C?

We have an Angular web application that uses C# WebAPI. We want to use Power BI dashboards and paginated reports in our application. We use Azure AD B2C for authentication. Does Power BI support Azure AD B2C Authentication? How can it be made to work for a multi-tenant database that uses RLS policy using session_contexts to access tenant specific data?

If there are any examples it would be good to see these.

2 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi PranayPanchal ,

     

    As far as I know, Azure AD B2C may cowork with AAD( not Power BI specific, but also work with other AAD based Microsoft online services.). 

     

    I suggest you to try to pass ths single master account into Azure AD with power bi access by your application.
    Then you can try to use the username from Azure B2C for RLS with GenerateToken.

     

    Best Regards,
    Rico Zhou

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

    • PranayPanchal's avatar
      PranayPanchal
      Regular Visitor

      Hi Anonymous , thank you for your response.
      I don't understand "Then you can try to use the username from Azure B2C for RLS with GenerateToken." this bit. Please can you elaborate. Please note that when the data for the dashboard is requested, the session_contexts must be set correctly to indicate the current tenant so that the data for the tenant in question is fetched. I am not sure how you are suggesting we do this.