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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
lfrigione
Helper II
Helper II

Hide pages by code

 

I have already seen something in this blog but I would like to solve the problem in vanilla js without using external libraries.
In my web application there are different users, I would like to manage a single embedded report with more pages and show, by code, only the pages related to the logged user rather than creating a report for each user.
 
is it possible?
 
for example when I create my config object...
2 REPLIES 2
v-micsh-msft
Microsoft Employee
Microsoft Employee

Yes, it is possible.

You may take a look at the RLS in Power BI embeded:

Use Row-level security with Power BI embeded content

 

Further, you may also set the page level filter through the SetFilter function:

https://github.com/Microsoft/PowerBI-JavaScript/wiki/Filters

 

Regards,

Michael

 

Excuse me I can not find the section to hide the pages, could you give a very simple example?

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.