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
rnehrboss
Helper II
Helper II

embedded javascript security risk question

Hi,

I've gotte embedding with a capacity working.

I check to see what user is logged in and create a filter to pass through the javascirpt API.

Power BI works great shows charts with filtering etc.

 

I'm now concerned about the security implications.

If I load the page and then view page source, I see the javasciprt with the access and embed tokens, as well as my filters. 

It seems like someone had access to the page, they could just take the page source, and change filters and create a new page that would give them access to other data (not allowed based on their own filters).

 

Am I missing something?  

I don't want to use Row Level Security, because we manage users and persmissions in web app.

 

Thanks!

 

2 REPLIES 2
v-chenwuz-msft
Community Support
Community Support

Hi @rnehrboss ,

 

The problem is that different users will get the same token. For the dataset, the kind of data it can give to the user is based on the token.

 

If you want different users to get different tokens with different permissions, then there are only two ways to do that according to the official documentation.

 

For more details, you can refer this link.

Generate an embed token in Power BI embedded analytics - Power BI | Microsoft Docs

 

Best Regards

Community Support Team _ chenwu zhu

 

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

 

rnehrboss
Helper II
Helper II

anyone knowlegable on this?

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.