Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anmolgan
Post Prodigy
Post Prodigy

How to use mutlipe Users in App owns data incase of RLS

I have two roles here, which contains 200 users in both of the roles, how can I modify the app owns data code so that I can establish relations for both of the roles with all the users??? How can edit the app owns data code here, I have been using the embedded sample for RLS, but I couldnt able to find how to use those users here is the sample of them:

 

 generateTokenRequestParameters = new GenerateTokenRequest("View", null, identities: new List<EffectiveIdentity>
{ new EffectiveIdentity (username: "testA@mydomain.com",
roles: new List<string> {"RLS ClientID 256", "RLS Client ID 5"},
datasets: new List<string> {"4cb6c656-b437-4769-ae98-ac0e673635ce"}) });

 

1 REPLY 1
Anmolgan
Post Prodigy
Post Prodigy

I am trying to apply RLS, into my Apps own data scenerio, I have two roles here and various users attached those roles, I am using this (https://docs.microsoft.com/en-us/power-bi/developer/embedded-row-level-security), for applying roles in my code, but how can I edit this line (var generateTokenRequestParameters = new GenerateTokenRequest("View", null, identities: new List<EffectiveIdentity> { new EffectiveIdentity(username: "username", roles: new List<string> { "roleA", "roleB" }, datasets: new List<string> { "datasetId" }) });) in my code so that I can use both the roles together and when I enter username into my application (which is App own data) the users are able tosee there roles according to the roles which I declare in the roleA and role B, How can I achieve this.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Kudoed Authors