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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Erkko
Frequent Visitor

Help with paginated report RLS in embedded solution

Hi! We are currently stuck with RLS in a case where would need to embed paginated report for customers. We got the normal reports working in app using the customdata() value. We have app-owns-data scenario and the users are all in the same security group but they are separated with user.1.(customernumber) and we use the customernumber to filter the data depending by the customer. We have now tried many ways but we can't see any data coming to the report. Including this method = https://learn.microsoft.com/en-us/power-bi/developer/embedded/paginated-reports-row-level-security .

Is there any way to apply this RLS for paginated report in our scenario?

 

Thank you very much!

1 ACCEPTED SOLUTION
jaineshp
Memorable Member
Memorable Member

Hey @Erkko,

You’re on the right track – paginated RLS works differently than normal PBIX reports. A few key things to check:

  • Use @UserID or =User!UserID / =User!CustomData inside your dataset queries or filters. For embedded, only CustomData() works, so make sure you pass the correct value in the embed token.

  • Set up the filter at dataset level (SQL or SSAS query) – paginated reports don’t use Power BI model RLS.

  • Verify the embed token actually carries CustomData (you can test by showing it in a textbox with =User!CustomData).

  • Avoid relying on security groups – for paginated, the row filtering must happen through the query logic tied to that CustomData.

  • Debug step: First hardcode a value in your dataset query to confirm data comes through, then swap in =User!CustomData.

This way, each customer’s data is filtered correctly when you embed the report.

 

Fixed? ✓ Mark it • Share it • Help others!


Best Regards,
Jainesh Poojara | Power BI Developer

View solution in original post

3 REPLIES 3
jaineshp
Memorable Member
Memorable Member

Hey @Erkko,

You’re on the right track – paginated RLS works differently than normal PBIX reports. A few key things to check:

  • Use @UserID or =User!UserID / =User!CustomData inside your dataset queries or filters. For embedded, only CustomData() works, so make sure you pass the correct value in the embed token.

  • Set up the filter at dataset level (SQL or SSAS query) – paginated reports don’t use Power BI model RLS.

  • Verify the embed token actually carries CustomData (you can test by showing it in a textbox with =User!CustomData).

  • Avoid relying on security groups – for paginated, the row filtering must happen through the query logic tied to that CustomData.

  • Debug step: First hardcode a value in your dataset query to confirm data comes through, then swap in =User!CustomData.

This way, each customer’s data is filtered correctly when you embed the report.

 

Fixed? ✓ Mark it • Share it • Help others!


Best Regards,
Jainesh Poojara | Power BI Developer

Hi! 

 

We got it working using your instructions but we started to test it further. We got it working also using only role in the datamodel. We have a role named "Example" using Table1[Username] = USERNAME() in Power BI. We pass from the code the UI Username value to the role and it filters data also automatically. Is this also a correct and secure way to do this? 

 

Thanks for the help!

Erkko
Frequent Visitor

@jaineshp 

Hi! 

 

We got it working using your instructions but we started to test it further. We got it working also using only role in the datamodel. We have a role named "Example" using Table1[Username] = USERNAME() in Power BI. We pass from the code the UI Username value to the role and it filters data also automatically. Is this also a correct and secure way to do this? 

 

Thanks for the help!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.

Top Solution Authors