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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ravikant_9
Frequent Visitor

script to push content pack to users workspace

We have integrated Power BI Reports with .net application and showing the reports in the existing .net Portal with Single Sign on enabled.

 

Issue: I have published the Power Bi Report and shared the content pack with the users. For users to see the report, they have to login to https://online.powerbi.com and import the content pack.

 

We are looking for script which can push the content packs to all the user's "My Workspace" with whom we are sharing the content so that they can directly login to the Portal and see their reports.

1 ACCEPTED SOLUTION

@ravikant_9,

You don't have to grant permission for users in Power BI App workspace. You can control permissions for users in Azure registered app.

In other words, you are able to achieve the requirement that configure RLS for the embed report and grant user edit report permission at the same time. For more details, you can post the question in Power BI Developer forum to get dedicated support.

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
v-yuezhe-msft
Employee
Employee

@ravikant_9,

It is not possible to push content pack to all the user's "My Workspace" with script. 

In your scenario, you can publish the Power BI  Report to App workspace instead, then add the users as members of the App workspace, this way, when users login to Power BI Service,  they are able to see reports.

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Lydia,

 

In our scenario, we do not want out users to login to Online Power Bi and check the reports. We have a customer portal where they will be loggin in. We want to give them good visualized reports with Self Service capabilities without any extra steps. So, we have designed the Reports, Published them and provided the RLS and shared the Content Pack. Also from the .net perspective, we have provided another Button on the Login Page. On clicking the Power BI report from their Workspace is opened with Single Sign On.

 

When I share the Content Pack, We have to ask them to import the content pack so that our .net application pick up the Report and show the same.

 

Is there any other solution which we can implement to achieve this scenario.

 

Please advise. I can give more details if required.

@ravikant_9,

You don't have to create content pack. Why not directly use Power BI embed feature to embed report to your application? You can use RLS with Power BI embedded content.

https://docs.microsoft.com/en-us/power-bi/developer/embedded-row-level-security

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-yuezhe-msft

 

We are looking into that option as well. But as far as I know, I have to create an App Workspace for Embedded Power BI. Once I create members and assign Only View permissions, they will not be able to do the Self Service (Modify existing report/ Create new page and Prepare new report and save it.) functionality. 

 

If I assign the members as "Edit Content" also, then RLS is not working. In this case, if they modify the report, the shared report gets modified and everybody will see the modified report.

 

Regards,

 

Ravi Kant

@ravikant_9,

You don't have to grant permission for users in Power BI App workspace. You can control permissions for users in Azure registered app.

In other words, you are able to achieve the requirement that configure RLS for the embed report and grant user edit report permission at the same time. For more details, you can post the question in Power BI Developer forum to get dedicated support.

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors