Forum Discussion
Power Bi Embedded RLS with REST API
- 9 years ago
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" ] } ] }
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" ]
}
]
}
Eric_Zhang can you please check with the product team, if I can pass in EffectiveIdentities to reports that use SSAS Live Connections and have roles there?
- Eric_Zhang8 years agoMicrosoft Employee
Anonymous
- Anonymous8 years agoNot applicable
I looked at it last week but I am not able to make it work on my application.
I have done everything according to this link