Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
Hello everyone,
I create one Funcion called cod_user to filter the report by cod_user:
I get the user logged in my php app:
$cod_user = Auth::user()->cod_user;
How do i do to filter this RLS in Javascript API?
var models = window['powerbi-client'].models;
var permissions = models.Permissions.All;
var config = {
type: 'report',
tokenType: tokenTypeReport == '1' ? models.TokenType.Aad : models.TokenType.Embed,
accessToken: accessToken,
embedUrl: EmbedUrlReport,
id: EmbedReportId,
permissions: permissions,
settings: {
filterPaneEnabled: false,
navContentPaneEnabled: true
}
};
var report = powerbi.embed(embedContainer, config);
Hey @marcio_fornari ,
I think this link will be useful.
https://community.powerbi.com/t5/Developer/PowerBi-Embedded-API-Works-with-RLS/td-p/231064
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.