We are using Power BI API to embed reports into our asp.net core MVC application using Power BI Javascript Library. We would have only one master user which will have a Power BI account and we would be using its credentials to get reports for all users who log in. The reports will also have filters which can be applied by the users from the UI and also a default filter will be applied while embedding report based on user's permissions. We are trying to filter reports using Javascript API as suggested here : PowerBI Reports Filter Using Javascript API and we are following PowerBI Embedded Reports Demo from microsoft to embed the report in our view. But the problem is that all the configuration including access token and filters are visible in developer tools of browser as shown below :
Now the filters provided to users on UI are restricted based on their roles and permissions so they can only apply certain filters to report and are shown only a filtered report data but if the access token and filters are clearly visible in developer tools , they can remove filters and use any tool for e.g postman and view the full report which is not desired. We do understand this problem arises because we are using only one PowerBI master account but we can not provide all users a PowerBI subscription. So, is there a way we can
- Apply configurations, filters and generate PowerBI Report on Server Side and then return the svg generated to View similar to angular server side rendering?
Or is there any other way to send parameters from server to PowerBI using PowerBIClient class and filter reports at power bi end ?