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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
CSpina
Helper III
Helper III

How to config RLS in Power BI Embed using Node.js

Hi, guys!

 

I am trying to config the Node.js to use RLS. I dindn´t find any pages teachinh howto do it.

 

I am using the appownsdata from Microsoft.

 

CSpina_0-1685652790419.png

 

Without RLS works fine, but with RLS I receive the error message:

 

CSpina_1-1685652891613.png

 

Anyone?

1 ACCEPTED SOLUTION
CSpina
Helper III
Helper III

Guys, after burn some fosfate I have fund the solution:

 

In the file src/embedConfigService.js

 

Add the lines below after the line 169.

 

// Add rls
formData['identities'] = [];
formData['identities'].push({
username: '100',
roles: ["Usuario"],
datasets: ["seu dataset"]
})

View solution in original post

3 REPLIES 3
CSpina
Helper III
Helper III

Guys, after burn some fosfate I have fund the solution:

 

In the file src/embedConfigService.js

 

Add the lines below after the line 169.

 

// Add rls
formData['identities'] = [];
formData['identities'].push({
username: '100',
roles: ["Usuario"],
datasets: ["seu dataset"]
})

CSpina
Helper III
Helper III

Thanks Pratyasha Samal, but the article is too old and don´t deal with node.js.

pratyashasamal
Super User
Super User

Hi @CSpina ,
Please check out this link.
https://medium.com/peritos-solutions/enable-row-level-security-and-embed-powerbi-dashboard-in-an-app...

Hope this was helpful.
Thanks,
Pratyasha Samal
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors