<?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: Dynamically Update Query Based on User ID - Power BI Embedded in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Dynamically-Update-Query-Based-on-User-ID-Power-BI-Embedded/m-p/2143922#M32475</link>
    <description>&lt;P&gt;Was there ever a good resolution to this issue?&amp;nbsp; I am curious about doing a similar thing.&amp;nbsp; The links provided about the API were not clear to me.&lt;/P&gt;&lt;P&gt;Any more information?&lt;/P&gt;</description>
    <pubDate>Tue, 19 Oct 2021 18:42:13 GMT</pubDate>
    <dc:creator>RyanStewart</dc:creator>
    <dc:date>2021-10-19T18:42:13Z</dc:date>
    <item>
      <title>Dynamically Update Query Based on User ID - Power BI Embedded</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Dynamically-Update-Query-Based-on-User-ID-Power-BI-Embedded/m-p/391139#M11621</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I recently embedd a Power BI report into a web app. Data are gathered from a SQL Server database.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When a user logs into the web app, I'd like for the queries to update based on that user's ID. So, something like the statement below where the "userid" value dynamically changes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;select * from table where userid = 1234&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My initial thought was to use row level security, but since we have hundreds of users, setting up the individual role for each user seems like an inefficient process. I don't want to add the userid as a filter since a user could clear the filter and then see other user's information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Passing the userid as part of a URL parameter would be ideal but that doesn't seem like it is possible according the link below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/service-url-filters" target="_blank"&gt;https://docs.microsoft.com/en-us/power-bi/service-url-filters&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone come across this requirement before? Any thoughts or suggested solutions would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;</description>
      <pubDate>Fri, 06 Apr 2018 13:18:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Dynamically-Update-Query-Based-on-User-ID-Power-BI-Embedded/m-p/391139#M11621</guid>
      <dc:creator>mcostner</dc:creator>
      <dc:date>2018-04-06T13:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically Update Query Based on User ID - Power BI Embedded</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Dynamically-Update-Query-Based-on-User-ID-Power-BI-Embedded/m-p/393998#M11727</link>
      <description>&lt;P&gt;Have you checked the &lt;A href="https://azure.microsoft.com/en-us/updates/power-bi-embedded-query-parameters-api/" target="_self"&gt;Power BI Embeded Query parameter API&lt;/A&gt;?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the UserId could be defined as a Query Parameter, then you could take use of the API to update it.&lt;/P&gt;&lt;P&gt;Check the API refernece:&lt;/P&gt;&lt;P&gt;&lt;A href="https://msdn.microsoft.com/en-us/library/mt845781.aspx" target="_self"&gt;Set parameters&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 09:28:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Dynamically-Update-Query-Based-on-User-ID-Power-BI-Embedded/m-p/393998#M11727</guid>
      <dc:creator>v-micsh-msft</dc:creator>
      <dc:date>2018-04-11T09:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically Update Query Based on User ID - Power BI Embedded</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Dynamically-Update-Query-Based-on-User-ID-Power-BI-Embedded/m-p/395522#M11773</link>
      <description>&lt;P&gt;Hi Michael,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I recently asked a question about Query Parameters API and not had a reply yet&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When Setting Parameters I am encountering an issue, it may also help Michael above with his query parameters if he has a problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.powerbi.com/t5/Developer/Query-Parameters-API/m-p/391898#M11635" target="_blank"&gt;http://community.powerbi.com/t5/Developer/Query-Parameters-API/m-p/391898#M11635&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;Alexander&lt;/P&gt;</description>
      <pubDate>Thu, 12 Apr 2018 22:14:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Dynamically-Update-Query-Based-on-User-ID-Power-BI-Embedded/m-p/395522#M11773</guid>
      <dc:creator>Alexander24</dc:creator>
      <dc:date>2018-04-12T22:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically Update Query Based on User ID - Power BI Embedded</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Dynamically-Update-Query-Based-on-User-ID-Power-BI-Embedded/m-p/2143922#M32475</link>
      <description>&lt;P&gt;Was there ever a good resolution to this issue?&amp;nbsp; I am curious about doing a similar thing.&amp;nbsp; The links provided about the API were not clear to me.&lt;/P&gt;&lt;P&gt;Any more information?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 18:42:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Dynamically-Update-Query-Based-on-User-ID-Power-BI-Embedded/m-p/2143922#M32475</guid>
      <dc:creator>RyanStewart</dc:creator>
      <dc:date>2021-10-19T18:42:13Z</dc:date>
    </item>
  </channel>
</rss>

