<?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 User changing role from A to B in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/User-changing-role-from-A-to-B/m-p/1058603#M14047</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a report that has RLS implement and working fine but the issue I have now is how to implement change if the user changes role. For example manager, A change from A to manage B and I want him to see details of B and A( where he stopped last at A only)&amp;nbsp;&lt;/P&gt;&lt;P&gt;that is he will see details of A up to the last date he managed A.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will really appreciate your help. Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Thu, 30 Apr 2020 08:11:24 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-04-30T08:11:24Z</dc:date>
    <item>
      <title>User changing role from A to B</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/User-changing-role-from-A-to-B/m-p/1058603#M14047</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a report that has RLS implement and working fine but the issue I have now is how to implement change if the user changes role. For example manager, A change from A to manage B and I want him to see details of B and A( where he stopped last at A only)&amp;nbsp;&lt;/P&gt;&lt;P&gt;that is he will see details of A up to the last date he managed A.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will really appreciate your help. Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 08:11:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/User-changing-role-from-A-to-B/m-p/1058603#M14047</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-30T08:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: User changing role from A to B</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/User-changing-role-from-A-to-B/m-p/1058809#M14049</link>
      <description>&lt;P&gt;So that requirement is possibly to achieve, but it will mean restructuring your model and data load routines. What you need to do is to implement surrogate keys (so that you can have different versions of each manager) and maintain effective dates for each "version" of a manager and employee.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What you would end up with is a table like the following. The first 3 rows are where "Manager A" managed Employees B &amp;amp; C, Then on 24-Mar he moved and started managing Employees D &amp;amp; F. If you insert fact records using the EmpID and then apply RLS to a column that identifies the employee (like the "Employee" column in the example below) then you should achieve the result you are after.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE style="width: 700px;" width="700"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="64"&gt;EmpID&lt;/TD&gt;
&lt;TD width="81"&gt;ManagerID&lt;/TD&gt;
&lt;TD width="119"&gt;Employee&lt;/TD&gt;
&lt;TD width="110"&gt;StartDate&lt;/TD&gt;
&lt;TD width="139"&gt;EndDate&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;Manager A&lt;/TD&gt;
&lt;TD&gt;01-October-2019&lt;/TD&gt;
&lt;TD&gt;23-March-2020&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;2&lt;/TD&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;TD&gt;Employee B&lt;/TD&gt;
&lt;TD&gt;01-October-2019&lt;/TD&gt;
&lt;TD&gt;23-March-2020&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;3&lt;/TD&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;TD&gt;Employee C&lt;/TD&gt;
&lt;TD&gt;01-October-2019&lt;/TD&gt;
&lt;TD&gt;23-March-2020&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;4&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;Manager A&lt;/TD&gt;
&lt;TD&gt;24-March-2020&lt;/TD&gt;
&lt;TD&gt;31-December-2999&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;5&lt;/TD&gt;
&lt;TD&gt;4&lt;/TD&gt;
&lt;TD&gt;Employee D&lt;/TD&gt;
&lt;TD&gt;24-March-2020&lt;/TD&gt;
&lt;TD&gt;31-December-2999&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;6&lt;/TD&gt;
&lt;TD&gt;4&lt;/TD&gt;
&lt;TD&gt;Employee E&lt;/TD&gt;
&lt;TD&gt;24-March-2020&lt;/TD&gt;
&lt;TD&gt;31-December-2999&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;7&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;Manager A2&lt;/TD&gt;
&lt;TD&gt;24-March-2020&lt;/TD&gt;
&lt;TD&gt;31-December-2999&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;8&lt;/TD&gt;
&lt;TD&gt;7&lt;/TD&gt;
&lt;TD&gt;Employee B&lt;/TD&gt;
&lt;TD&gt;24-March-2020&lt;/TD&gt;
&lt;TD&gt;31-December-2999&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;9&lt;/TD&gt;
&lt;TD&gt;7&lt;/TD&gt;
&lt;TD&gt;Employee C&lt;/TD&gt;
&lt;TD&gt;24-March-2020&lt;/TD&gt;
&lt;TD&gt;31-December-2999&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You just need to be very careful to test your data load routines very carefully, because when a manager moves you need to generate new "versions" of every employee underneath them.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 09:27:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/User-changing-role-from-A-to-B/m-p/1058809#M14049</guid>
      <dc:creator>d_gosbell</dc:creator>
      <dc:date>2020-04-30T09:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: User changing role from A to B</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/User-changing-role-from-A-to-B/m-p/1059193#M14054</link>
      <description>&lt;P&gt;Thanks, a lot that was a great relief.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 12:58:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/User-changing-role-from-A-to-B/m-p/1059193#M14054</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-30T12:58:10Z</dc:date>
    </item>
  </channel>
</rss>

