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 nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! 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
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |