Forum Discussion

dcruise's avatar
dcruise
Frequent Visitor
9 years ago
Solved

Power Bi Embedded RLS with REST API

Hello all,    This is kind of urgent so any quick help would be greatly appreciated.    We have built out a Proof of Concept web-app that will embed Power BI Dashboards. When a user signs in, we ...
  • Eric_Zhang's avatar
    9 years ago

    dcruise

     

    Based on my test, the RLS is avalaible for the embedded reports and it is not available for embedded dashboards(confirmation from product team). See GenerateToken. While trying to call the embed token API for a dashboard with the POST body JSON as below, it response with error message "Creating embed token with effective identity for reasources of type Dashboard is not supported". The embeded view token generated in your case can view all data. So to apply RLS, you may have to embed a report at this moment.

     

    {   
        "accessLevel": "View",
        "identities": [     
            {      
                "username": "EffectiveUsername",
                "roles": [ "Role1", "Role2" ],
                "datasets": [ "fe0a1aeb-f6a4-4b27-a2d3-b5df3bb28bdc" ]
            }   
        ] 
    }