Forum Discussion

CSpina's avatar
CSpina
Helper III
3 years ago
Solved

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.     Without RLS works fine, but with...
  • CSpina's avatar
    3 years ago

    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"]
    })