cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Helper I
Helper I

Re: Power API - Embedded

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.

Highlighted
Microsoft
Microsoft

Re: Power API - Embedded


@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


@HarpsichordMan

 

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.

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Upcoming Events

Experience what’s next for Power BI

See the latest Power BI innovations, updates, and demos from the Microsoft Business Applications Launch Event.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Mark your calendars and join us for our next Power BI Dev Camp!.