Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
shaileng
Frequent Visitor

Power API - Embedded

Need a suggestion:

 

My requirement -

 

In my ASP.NET + Embedded Power BI application if a user belongs to group A then I have to show Report A and if he belongs to group B then I have to show Report B

 

In order to control which user belongs to which group I can either create a web page in my asp.net application which simply lists user with option to select him to add to group A.

 

Alternatively I was thinking to create a role in PowerBi.com and add users to this group and programatically detect if user belongs to this group and if so programatically launch report A or report B accordingly.

 

However as I understand Embedded Power BI API does not support detecting whether a user belongs to certain group or not.

 

Any idea or alternative ?

 

Thanks

2 REPLIES 2
Eric_Zhang
Microsoft Employee
Microsoft Employee


@shaileng wrote:

Need a suggestion:

 

My requirement -

 

In my ASP.NET + Embedded Power BI application if a user belongs to group A then I have to show Report A and if he belongs to group B then I have to show Report B

 

In order to control which user belongs to which group I can either create a web page in my asp.net application which simply lists user with option to select him to add to group A.

 

Alternatively I was thinking to create a role in PowerBi.com and add users to this group and programatically detect if user belongs to this group and if so programatically launch report A or report B accordingly.

 

However as I understand Embedded Power BI API does not support detecting whether a user belongs to certain group or not.

 

Any idea or alternative ?

 

Thanks


@Anonymous

 

If user refers to Power BI users, then it is the Embedding for your organization scenario. In this scenario, you can define groupA and groupB in your application and embed reportA and reportB individually, however those reportA and reportB have to be accessible for those users in Power BI. Power BI detects the users after login.

 

If user refers to your App users, then it is Embedding for your customers scenario. In this case, you just publish reports to Power BI services and embed with a master account. All access control is customized by yourself, the users even don't have to be aware of Power BI. you can define groupA and groupB in your application and embed reportA and reportB individually, every user has access to the embedding page can view the reports. No detection from Power BI(actually Power BI detects your master account) at all.

Anonymous
Not applicable

I think you're going to want to control visibility of the links to the reports within your application. With Embedded, the server just know about the groupid & reportid and has no idea what rights a user, logged into your application, has.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.