Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
I am trying to embed an app-owns-data report into my web app with RLS to restrict the report data to specific users.
The documentation at:
https://docs.microsoft.com/en-us/azure/power-bi-embedded/power-bi-embedded-rls
explains that 'username' and 'role' parameters can be passed into the CreateReportEmbedToken method so that the resulting embedded report contains data relevant only to the permissions of the 'username' and 'role'.
The problem I have is that the sample code on github (recently updated for the new API) uses the methods AcquireTokenAsync, and GenerateTokenInGroupAsync in order to display an embedded report, rather than CreateReportEmbedToken as per the above documentation.
The Async methods do not appear to support the passing of a 'username' or 'role', meaning I cannot filter my embedded report to only the username and role required.
What am I missing here?
Thanks
James.
Solved! Go to Solution.
hi @Eric_Zhang,
here is the link for RLS for non PowerBI users
https://powerbi.microsoft.com/en-us/documentation/powerbi-developer-embedded-rls/
Do you have any ETA for the RLS for Embedding with non-Power BI users (app owns data)? I saw you said it would come in Aug?
Hello,
We expect this by the end of the week of Aug 7th.
Best regards
Hello,
RLS support was enabled last week as promissed.
Please see the August update blog: https://powerbi.microsoft.com/en-us/blog/power-bi-developer-community-august-update/
Best regards
@yuryb wrote:
Hello,
RLS support was enabled last week as promissed.
Please see the August update blog: https://powerbi.microsoft.com/en-us/blog/power-bi-developer-community-august-update/
Best regards
Thanks for your confirmation. One question, is RLS only available for embedded reports while not for Dashboards? See the test in this thread.
Indeed, currently RLS is only supported for embedded reports. Support for embedded dashboards will come later, no concrete dates yet.
Best regards
Hi,
Any news on RLS for Dashboards? We need to test it asap.
Regards,
hi @Eric_Zhang,
here is the link for RLS for non PowerBI users
https://powerbi.microsoft.com/en-us/documentation/powerbi-developer-embedded-rls/
Hi i see that now GenerateTokenRequest now accepts a list of EffectiveIdentity i am trying this with a single EffectiveIdentity with only the username set but recieve BadRequest. Any ideas / docs about this new functionality ?
Hey!
Username, Role and DatasetId needs to be added to the EffectiveIdentity-object.
Here you find an example. https://powerbi.microsoft.com/en-us/documentation/powerbi-developer-embedded-rls/
Worked for me without any problems. Let me know if you got any further problems.
MeQT
Thanks i'll take a look
This does work. I've tested it out in my application and it is filtering data as expected.
https://community.powerbi.com/t5/Developer/PowerBi-Embedded-API-Works-with-RLS/m-p/231064#M7285
awesome! thanks for your response
Hi,
I asked the same question some days ago. https://community.powerbi.com/t5/Developer/RSL-How-to-submit-role-parameter-within-embedded-token/td...
MeQT
User | Count |
---|---|
18 | |
11 | |
5 | |
4 | |
3 |