<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Filtering data for customers with embedded Power BI with a shared data source? in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Filtering-data-for-customers-with-embedded-Power-BI-with-a/m-p/77693#M2707</link>
    <description>&lt;P&gt;Yes, I did look at that. From what I could tell, though, it looked like a role would need set up for every customer&amp;nbsp;with every&amp;nbsp;associated user (they'd also need&amp;nbsp;removed as customers' staff turn over).&amp;nbsp;This is fine for a small number of customers, but it doesn't seem like it would be easily&amp;nbsp;maintainable as business grows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, would this need set up on a report-by-report basis? If so, then that compounds the issue of maintenance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are there alternatives to managing RLS manually through Power BI desktop? Is role/rule setup available through the SDK?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm pretty new to all of this, so let me know if I'm wildly off-base here. I'm also open to utilizing other types of data sources, if there are better solutions. For example, if a report could pass along user info to a REST or OData endpoint, then the data could be filtered server-side before it even makes it to the report itself.&lt;/P&gt;</description>
    <pubDate>Wed, 12 Oct 2016 13:39:00 GMT</pubDate>
    <dc:creator>IanV</dc:creator>
    <dc:date>2016-10-12T13:39:00Z</dc:date>
    <item>
      <title>Filtering data for customers with embedded Power BI with a shared data source?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Filtering-data-for-customers-with-embedded-Power-BI-with-a/m-p/77250#M2676</link>
      <description>&lt;P&gt;I'm sure this has been answered somewhere, but I'm having a very difficult time finding information about this exact scenario.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let's assume you have a web application with several customers (each with multiple users), backed by a single relational database. All customer data is in shared tables, segmented by a CustomerId. How, then, would you configure reports so that a user for a particular customer could log in, open an embedded report, and see only data related to their organization?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to &lt;A href="https://community.fabric.microsoft.com/t5/Developer/Issue-How-to-send-the-same-report-to-a-different-client/m-p/49951" target="_blank"&gt;this question (Power BI embedded with user data)&lt;/A&gt;, it is possible to have Power BI switch actual data sources based on the current user. While this is close, I don't think it solves my problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Developer/Issue-How-to-send-the-same-report-to-a-different-client/m-p/49951" target="_blank"&gt;This question was also very close (&lt;SPAN&gt;Issue: How to send the same report to a different client.&lt;/SPAN&gt;)&lt;/A&gt;, but&amp;nbsp;it didn't quite explain how creating a relationship to a client table helps when a particular client is viewing/running a report on their own.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From what I've seen so far, the Power BI tools are incredible. I'd love to integrate/embed it into some applications, but I can't seem to find a clearly defined way around this.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2016 14:39:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Filtering-data-for-customers-with-embedded-Power-BI-with-a/m-p/77250#M2676</guid>
      <dc:creator>IanV</dc:creator>
      <dc:date>2016-10-11T14:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering data for customers with embedded Power BI with a shared data source?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Filtering-data-for-customers-with-embedded-Power-BI-with-a/m-p/77533#M2698</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/15380"&gt;@IanV﻿&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you checked this article &lt;A href="https://azure.microsoft.com/en-us/documentation/articles/power-bi-embedded-rls/" target="_self"&gt;Row level security with Power BI Embedded&lt;/A&gt;?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2016 06:52:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Filtering-data-for-customers-with-embedded-Power-BI-with-a/m-p/77533#M2698</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2016-10-12T06:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering data for customers with embedded Power BI with a shared data source?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Filtering-data-for-customers-with-embedded-Power-BI-with-a/m-p/77693#M2707</link>
      <description>&lt;P&gt;Yes, I did look at that. From what I could tell, though, it looked like a role would need set up for every customer&amp;nbsp;with every&amp;nbsp;associated user (they'd also need&amp;nbsp;removed as customers' staff turn over).&amp;nbsp;This is fine for a small number of customers, but it doesn't seem like it would be easily&amp;nbsp;maintainable as business grows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, would this need set up on a report-by-report basis? If so, then that compounds the issue of maintenance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are there alternatives to managing RLS manually through Power BI desktop? Is role/rule setup available through the SDK?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm pretty new to all of this, so let me know if I'm wildly off-base here. I'm also open to utilizing other types of data sources, if there are better solutions. For example, if a report could pass along user info to a REST or OData endpoint, then the data could be filtered server-side before it even makes it to the report itself.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2016 13:39:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Filtering-data-for-customers-with-embedded-Power-BI-with-a/m-p/77693#M2707</guid>
      <dc:creator>IanV</dc:creator>
      <dc:date>2016-10-12T13:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering data for customers with embedded Power BI with a shared data source?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Filtering-data-for-customers-with-embedded-Power-BI-with-a/m-p/77744#M2708</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/6971"&gt;@Eric_Zhang﻿&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Actually, ignore my last reply. After looking more into how RLS works with Power BI embedded, I figured out that I could actually pass in a CustomerId as the username on the embed token, and then use&amp;nbsp;DAX with the USERNAME() function to tie that to the CustomerId on the report.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So essentially, in RLS, I have a role "Customer" with the following DAX expression:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[CustomerId] = USERNAME()&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then, I &amp;nbsp;created a token&amp;nbsp;with the appropriate role and username:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{
  "wid":"{workspace id}",
  "rid":"{report id}",
  /* other properties */
  "roles":"Customer",
  "username":"my-customer-uid"
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure if this is what you intended when you suggested using RLS, but it should definitely work.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2016 17:37:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Filtering-data-for-customers-with-embedded-Power-BI-with-a/m-p/77744#M2708</guid>
      <dc:creator>IanV</dc:creator>
      <dc:date>2016-10-12T17:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering data for customers with embedded Power BI with a shared data source?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Filtering-data-for-customers-with-embedded-Power-BI-with-a/m-p/191263#M6073</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/15380"&gt;@IanV&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please tell me where am I supposed to create the token? I'm new at this and I don't understand. I read the post about power BI Embedded but I can't figure out the part with the token.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me..&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2017 11:18:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Filtering-data-for-customers-with-embedded-Power-BI-with-a/m-p/191263#M6073</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-09T11:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering data for customers with embedded Power BI with a shared data source?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Filtering-data-for-customers-with-embedded-Power-BI-with-a/m-p/2462998#M35601</link>
      <description>&lt;P&gt;&lt;A href="https://docs.microsoft.com/it-it/power-bi/developer/embedded/cloud-rls" target="_blank"&gt;https://docs.microsoft.com/it-it/power-bi/developer/embedded/cloud-rls&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 08:40:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Filtering-data-for-customers-with-embedded-Power-BI-with-a/m-p/2462998#M35601</guid>
      <dc:creator>marco_comande</dc:creator>
      <dc:date>2022-04-19T08:40:12Z</dc:date>
    </item>
  </channel>
</rss>

