Forum Discussion
Pass username and role in token request for RLS to work with an embedded app-owns-data report
- 9 years ago
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
- brenkehoe9 years ago
Helper I
Thanks i'll take a look
- Anonymous9 years agoNot applicable
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