<?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: Passing user parameter from dashboard to SQL server through SSAS in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Passing-user-parameter-from-dashboard-to-SQL-server-through-SSAS/m-p/258576#M1189</link>
    <description>&lt;P&gt;I completely understand - I've worked on a project with similar constraints. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my case, I was working with a client that used Office 365 as their main directory; I was able to create an Office 365 Group and assign it to the role, and then add users to the Office 365 Group when they needed access to Power BI. &amp;nbsp;This still required bulk adding users to a group, but the management could be done by anyone with access to the Office 365 Portal. &amp;nbsp;You may be able to do something similar if you're in an on-prem Active Directory as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good luck - I'll follow this thread for other suggestions.&lt;/P&gt;</description>
    <pubDate>Mon, 25 Sep 2017 14:40:57 GMT</pubDate>
    <dc:creator>malagari</dc:creator>
    <dc:date>2017-09-25T14:40:57Z</dc:date>
    <item>
      <title>Passing user parameter from dashboard to SQL server through SSAS</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Passing-user-parameter-from-dashboard-to-SQL-server-through-SSAS/m-p/256703#M1131</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have created a Power BI dashboard hosted on an On-Premise Report Server. We are using the&amp;nbsp;June 2017 GA version of the Report Server and hence can only use a Live SSAS connection for publishing the dashboard, with the SSAS model connected to an SQL server with the DirectQuery mode on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Next, we have to filter the incoming data from the SQL server for the user that has logged-in to view the report. Now since the user-list is relatively large and ever changing, we would ideally want to stay away from using RLS as manual addition of each user into a member group would be a big challenge to maintain moving forward.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question&lt;/STRONG&gt;: Is there a way we can pass the user login info with the USERNAME() function over to the query fetching the data from the SQL server into the SSAS model - something like &lt;EM&gt;SELECT *&amp;nbsp;FROM [dbo].[Table] WHERE [User]=USERNAME()&lt;/EM&gt;? Any other suggestions to help achieve the same?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2017 16:15:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Passing-user-parameter-from-dashboard-to-SQL-server-through-SSAS/m-p/256703#M1131</guid>
      <dc:creator>rohan_misra</dc:creator>
      <dc:date>2017-09-21T16:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: Passing user parameter from dashboard to SQL server through SSAS</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Passing-user-parameter-from-dashboard-to-SQL-server-through-SSAS/m-p/257662#M1159</link>
      <description>&lt;P&gt;You can use roles in the SSAS Tabular Model to achieve this. &amp;nbsp;You'll need to create a role with a DAX Table Filter that uses the USERNAME function. &amp;nbsp;Then, you'll associate any users that need to be filtered with this role.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When a user logs in, they'll first be checked against the roles in SSAS. &amp;nbsp;If they are a member of the role, the data they see is filtered&amp;nbsp;based on the DAX filter definitions in that role. &amp;nbsp;In your case, it'll check the Power BI username against the [User] column in the table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Check out the tutorial here to get a better understanding:&amp;nbsp;&lt;A href="https://powerbi.microsoft.com/en-us/documentation/powerbi-desktop-tutorial-row-level-security-onprem-ssas-tabular/" target="_blank"&gt;https://powerbi.microsoft.com/en-us/documentation/powerbi-desktop-tutorial-row-level-security-onprem-ssas-tabular/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2017 20:55:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Passing-user-parameter-from-dashboard-to-SQL-server-through-SSAS/m-p/257662#M1159</guid>
      <dc:creator>malagari</dc:creator>
      <dc:date>2017-09-22T20:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: Passing user parameter from dashboard to SQL server through SSAS</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Passing-user-parameter-from-dashboard-to-SQL-server-through-SSAS/m-p/258163#M1174</link>
      <description>&lt;P&gt;Thanks for the reply &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="8585" data-lia-user-login="malagari" class="lia-mention lia-mention-user"&gt;malagari&lt;/a&gt;. However, in this case I will have to&amp;nbsp;add each user individually to the role that&amp;nbsp;is created. I actually want to get around that functionality as the user list is large and ever changing. Any thoughts?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2017 06:47:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Passing-user-parameter-from-dashboard-to-SQL-server-through-SSAS/m-p/258163#M1174</guid>
      <dc:creator>rohan_misra</dc:creator>
      <dc:date>2017-09-25T06:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: Passing user parameter from dashboard to SQL server through SSAS</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Passing-user-parameter-from-dashboard-to-SQL-server-through-SSAS/m-p/258576#M1189</link>
      <description>&lt;P&gt;I completely understand - I've worked on a project with similar constraints. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my case, I was working with a client that used Office 365 as their main directory; I was able to create an Office 365 Group and assign it to the role, and then add users to the Office 365 Group when they needed access to Power BI. &amp;nbsp;This still required bulk adding users to a group, but the management could be done by anyone with access to the Office 365 Portal. &amp;nbsp;You may be able to do something similar if you're in an on-prem Active Directory as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good luck - I'll follow this thread for other suggestions.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2017 14:40:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Passing-user-parameter-from-dashboard-to-SQL-server-through-SSAS/m-p/258576#M1189</guid>
      <dc:creator>malagari</dc:creator>
      <dc:date>2017-09-25T14:40:57Z</dc:date>
    </item>
  </channel>
</rss>

