<div dir="ltr">Adam,<div>   Thanks again, As you suggested  i chose option[2]  and made some changes in UserInfoUtil.php. Now it works nicely. It would be great if i get your opinion/suggestions. </div><div><br></div><div style>

This what i have done to make it work:</div><div style><br></div><div style>Created a new function in <b>UserInfoUtil.php</b> called <span style="color:rgb(0,0,0);font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono',monospace,serif;font-size:12.222222328186035px;line-height:20.98958396911621px"><b>getReportingUsers</b></span></div>

<div style><br></div><div style><ol style="margin:0px;padding:0px 0px 0px 48px;color:rgb(172,172,172);font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono',monospace,serif;font-size:12px;line-height:21px;background-color:rgb(248,248,248)">

<li class="" style><div class="" style="padding:0px 5px;vertical-align:top;color:rgb(0,0,0);border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);background-color:rgb(255,255,255);line-height:21px">

<span class="" style="color:rgb(0,153,51);font-style:italic">/**</span></div></li><li class="" style><div class="" style="padding:0px 5px;vertical-align:top;color:rgb(0,0,0);border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);background-color:rgb(255,255,255);line-height:21px">

<span class="" style="color:rgb(0,153,51);font-style:italic"> * Function to get reporting users of the given user</span></div></li><li class="" style><div class="" style="padding:0px 5px;vertical-align:top;color:rgb(0,0,0);border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);background-color:rgb(255,255,255);line-height:21px">

<span class="" style="color:rgb(0,153,51);font-style:italic"> * @param <Int> $userId</span></div></li><li class="" style><div class="" style="padding:0px 5px;vertical-align:top;color:rgb(0,0,0);border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);background-color:rgb(255,255,255);line-height:21px">

<span class="" style="color:rgb(0,153,51);font-style:italic"> * @return <Array> $reportingUsers</span></div></li><li class="" style><div class="" style="padding:0px 5px;vertical-align:top;color:rgb(0,0,0);border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);background-color:rgb(255,255,255);line-height:21px">

<span class="" style="color:rgb(0,153,51);font-style:italic"> */</span></div></li><li class="" style><div class="" style="padding:0px 5px;vertical-align:top;color:rgb(0,0,0);border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);background-color:rgb(255,255,255);line-height:21px">

<span class="" style="font-weight:bold">function</span> getReportingUsers<span class="" style="color:rgb(0,153,0)">(</span><span class="" style="color:rgb(0,0,136)">$userId</span><span class="" style="color:rgb(0,153,0)">)</span> <span class="" style="color:rgb(0,153,0)">{</span></div>

</li><li class="" style><div class="" style="padding:0px 5px;vertical-align:top;color:rgb(0,0,0);border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);background-color:rgb(255,255,255);line-height:21px">

    <span class="" style="font-weight:bold">global</span> <span class="" style="color:rgb(0,0,136)">$log</span><span class="" style="color:rgb(51,153,51)">;</span></div></li><li class="" style><div class="" style="padding:0px 5px;vertical-align:top;color:rgb(0,0,0);border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);background-color:rgb(255,255,255);line-height:21px">

    <span class="" style="color:rgb(0,0,136)">$log</span><span class="" style="color:rgb(51,153,51)">-></span><span class="" style="color:rgb(0,64,0)">debug</span><span class="" style="color:rgb(0,153,0)">(</span><span class="" style="color:rgb(0,0,255)">"Entering getReportingUsers("</span> <span class="" style="color:rgb(51,153,51)">.</span> <span class="" style="color:rgb(0,0,136)">$userId</span> <span class="" style="color:rgb(51,153,51)">.</span> <span class="" style="color:rgb(0,0,255)">") method ..."</span><span class="" style="color:rgb(0,153,0)">)</span><span class="" style="color:rgb(51,153,51)">;</span></div>

</li><li class="" style><div class="" style="padding:0px 5px;vertical-align:top;color:rgb(0,0,0);border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);background-color:rgb(255,255,255);line-height:21px">

    <span class="" style="font-weight:bold">global</span> <span class="" style="color:rgb(0,0,136)">$adb</span><span class="" style="color:rgb(51,153,51)">;</span></div></li><li class="" style><div class="" style="padding:0px 5px;vertical-align:top;color:rgb(0,0,0);border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);background-color:rgb(255,255,255);line-height:21px">

    <span class="" style="color:rgb(0,0,136)">$sql</span> <span class="" style="color:rgb(51,153,51)">=</span> <span class="" style="color:rgb(0,0,255)">"select id from vtiger_users where reports_to_id = <span class="" style="color:rgb(0,102,153);font-weight:bold">$userId</span>"</span><span class="" style="color:rgb(51,153,51)">;</span></div>

</li><li class="" style><div class="" style="padding:0px 5px;vertical-align:top;color:rgb(0,0,0);border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);background-color:rgb(255,255,255);line-height:21px">

    <span class="" style="color:rgb(0,0,136)">$result</span> <span class="" style="color:rgb(51,153,51)">=</span> <span class="" style="color:rgb(0,0,136)">$adb</span><span class="" style="color:rgb(51,153,51)">-></span><span class="" style="color:rgb(0,64,0)">pquery</span><span class="" style="color:rgb(0,153,0)">(</span><span class="" style="color:rgb(0,0,136)">$sql</span><span class="" style="color:rgb(51,153,51)">,</span> <span class="" style="color:rgb(153,0,0)">array</span><span class="" style="color:rgb(0,153,0)">(</span><span class="" style="color:rgb(0,153,0)">)</span><span class="" style="color:rgb(0,153,0)">)</span><span class="" style="color:rgb(51,153,51)">;</span></div>

</li><li class="" style><div class="" style="padding:0px 5px;vertical-align:top;color:rgb(0,0,0);border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);background-color:rgb(255,255,255);line-height:21px">

    <span class="" style="color:rgb(0,0,136)">$num_rows</span> <span class="" style="color:rgb(51,153,51)">=</span> <span class="" style="color:rgb(0,0,136)">$adb</span><span class="" style="color:rgb(51,153,51)">-></span><span class="" style="color:rgb(0,64,0)">num_rows</span><span class="" style="color:rgb(0,153,0)">(</span><span class="" style="color:rgb(0,0,136)">$result</span><span class="" style="color:rgb(0,153,0)">)</span><span class="" style="color:rgb(51,153,51)">;</span></div>

</li><li class="" style><div class="" style="padding:0px 5px;vertical-align:top;color:rgb(0,0,0);border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);background-color:rgb(255,255,255);line-height:21px">

    <span class="" style="color:rgb(0,0,136)">$reportingUsers</span> <span class="" style="color:rgb(51,153,51)">=</span> <span class="" style="color:rgb(153,0,0)">array</span><span class="" style="color:rgb(0,153,0)">(</span><span class="" style="color:rgb(0,153,0)">)</span><span class="" style="color:rgb(51,153,51)">;</span></div>

</li><li class="" style><div class="" style="padding:0px 5px;vertical-align:top;color:rgb(0,0,0);border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);background-color:rgb(255,255,255);line-height:21px">

    <span class="" style="color:rgb(177,177,0)">if</span> <span class="" style="color:rgb(0,153,0)">(</span><span class="" style="color:rgb(0,0,136)">$num_rows</span> <span class="" style="color:rgb(51,153,51)"><</span> <span class="" style="color:rgb(204,102,204)">0</span><span class="" style="color:rgb(0,153,0)">)</span></div>

</li><li class="" style><div class="" style="padding:0px 5px;vertical-align:top;color:rgb(0,0,0);border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);background-color:rgb(255,255,255);line-height:21px">

        <span class="" style="color:rgb(177,177,0)">return</span> <span class="" style="color:rgb(0,153,0);font-weight:bold">FALSE</span><span class="" style="color:rgb(51,153,51)">;</span></div></li><li class="" style><div class="" style="padding:0px 5px;vertical-align:top;color:rgb(0,0,0);border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);background-color:rgb(255,255,255);line-height:21px">

    <span class="" style="color:rgb(177,177,0)">for</span> <span class="" style="color:rgb(0,153,0)">(</span><span class="" style="color:rgb(0,0,136)">$i</span> <span class="" style="color:rgb(51,153,51)">=</span> <span class="" style="color:rgb(204,102,204)">0</span><span class="" style="color:rgb(51,153,51)">;</span> <span class="" style="color:rgb(0,0,136)">$i</span> <span class="" style="color:rgb(51,153,51)"><</span> <span class="" style="color:rgb(0,0,136)">$num_rows</span><span class="" style="color:rgb(51,153,51)">;</span> <span class="" style="color:rgb(0,0,136)">$i</span><span class="" style="color:rgb(51,153,51)">++</span><span class="" style="color:rgb(0,153,0)">)</span> <span class="" style="color:rgb(0,153,0)">{</span></div>

</li><li class="" style><div class="" style="padding:0px 5px;vertical-align:top;color:rgb(0,0,0);border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);background-color:rgb(255,255,255);line-height:21px">

        <span class="" style="color:rgb(0,0,136)">$id</span> <span class="" style="color:rgb(51,153,51)">=</span> <span class="" style="color:rgb(0,0,136)">$adb</span><span class="" style="color:rgb(51,153,51)">-></span><span class="" style="color:rgb(0,64,0)">query_result</span><span class="" style="color:rgb(0,153,0)">(</span><span class="" style="color:rgb(0,0,136)">$result</span><span class="" style="color:rgb(51,153,51)">,</span> <span class="" style="color:rgb(0,0,136)">$i</span><span class="" style="color:rgb(51,153,51)">,</span> <span class="" style="color:rgb(0,0,255)">'id'</span><span class="" style="color:rgb(0,153,0)">)</span><span class="" style="color:rgb(51,153,51)">;</span></div>

</li><li class="" style><div class="" style="padding:0px 5px;vertical-align:top;color:rgb(0,0,0);border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);background-color:rgb(255,255,255);line-height:21px">

        <span class="" style="color:rgb(0,0,136)">$reportingUsers</span><span class="" style="color:rgb(0,153,0)">[</span><span class="" style="color:rgb(0,153,0)">]</span> <span class="" style="color:rgb(51,153,51)">=</span> <span class="" style="color:rgb(153,0,0)">array</span><span class="" style="color:rgb(0,153,0)">(</span></div>

</li><li class="" style><div class="" style="padding:0px 5px;vertical-align:top;color:rgb(0,0,0);border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);background-color:rgb(255,255,255);line-height:21px">

            <span class="" style="color:rgb(0,0,136)">$id</span><span class="" style="color:rgb(51,153,51)">,</span></div></li><li class="" style><div class="" style="padding:0px 5px;vertical-align:top;color:rgb(0,0,0);border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);background-color:rgb(255,255,255);line-height:21px">

            getReportingUsers<span class="" style="color:rgb(0,153,0)">(</span><span class="" style="color:rgb(0,0,136)">$id</span><span class="" style="color:rgb(0,153,0)">)</span></div></li><li class="" style><div class="" style="padding:0px 5px;vertical-align:top;color:rgb(0,0,0);border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);background-color:rgb(255,255,255);line-height:21px">

        <span class="" style="color:rgb(0,153,0)">)</span><span class="" style="color:rgb(51,153,51)">;</span></div></li><li class="" style><div class="" style="padding:0px 5px;vertical-align:top;color:rgb(0,0,0);border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);background-color:rgb(255,255,255);line-height:21px">

    <span class="" style="color:rgb(0,153,0)">}</span></div></li><li class="" style><div class="" style="padding:0px 5px;vertical-align:top;color:rgb(0,0,0);border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);background-color:rgb(255,255,255);line-height:21px">

    <span class="" style="color:rgb(177,177,0)">return</span> <span class="" style="color:rgb(0,0,136)">$reportingUsers</span><span class="" style="color:rgb(51,153,51)">;</span></div></li><li class="" style><div class="" style="padding:0px 5px;vertical-align:top;color:rgb(0,0,0);border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);background-color:rgb(255,255,255);line-height:21px">

<span class="" style="color:rgb(0,153,0)">}</span></div></li></ol></div><div><br></div><div style>And instead of checking Subordinate <a href="http://trac.vtiger.com/cgi-bin/trac.cgi/browser/vtigercrm/branches/6.0.0/include/utils/UserInfoUtil.php#L890">Users</a>, i checked Reporting users:</div>

<div style><br></div><div style><ol style="margin:0px;padding:0px 0px 0px 48px;color:rgb(172,172,172);font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono',monospace,serif;font-size:12px;line-height:21px;background-color:rgb(248,248,248)">

<li class="" style><div class="" style="padding:0px 5px;vertical-align:top;color:rgb(0,0,0);border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);background-color:rgb(255,255,255);line-height:21px">

                <span class="" style="color:rgb(102,102,102);font-style:italic">//Checking if the Record Owner is a reporting User</span></div></li><li class="" style><div class="" style="padding:0px 5px;vertical-align:top;color:rgb(0,0,0);border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);background-color:rgb(255,255,255);line-height:21px">

                <span class="" style="color:rgb(0,0,136)">$userids</span> <span class="" style="color:rgb(51,153,51)">=</span> <span class="" style="color:rgb(153,0,0)">array</span><span class="" style="color:rgb(0,153,0)">(</span><span class="" style="color:rgb(0,153,0)">)</span><span class="" style="color:rgb(51,153,51)">;</span></div>

</li><li class="" style><div class="" style="padding:0px 5px;vertical-align:top;color:rgb(0,0,0);border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);background-color:rgb(255,255,255);line-height:21px">

                <span class="" style="color:rgb(177,177,0)">foreach</span> <span class="" style="color:rgb(0,153,0)">(</span><span class="" style="font-weight:bold">new</span> RecursiveIteratorIterator<span class="" style="color:rgb(0,153,0)">(</span><span class="" style="font-weight:bold">new</span> RecursiveArrayIterator<span class="" style="color:rgb(0,153,0)">(</span>getReportingUsers<span class="" style="color:rgb(0,153,0)">(</span><span class="" style="color:rgb(0,0,136)">$current_user</span><span class="" style="color:rgb(51,153,51)">-></span><span class="" style="color:rgb(0,64,0)">id</span><span class="" style="color:rgb(0,153,0)">)</span><span class="" style="color:rgb(0,153,0)">)</span><span class="" style="color:rgb(0,153,0)">)</span> <span class="" style="color:rgb(177,177,0)">as</span> <span class="" style="color:rgb(0,0,136)">$userid</span><span class="" style="color:rgb(0,153,0)">)</span> <span class="" style="color:rgb(0,153,0)">{</span></div>

</li><li class="" style><div class="" style="padding:0px 5px;vertical-align:top;color:rgb(0,0,0);border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);background-color:rgb(255,255,255);line-height:21px">

                    <span class="" style="color:rgb(153,0,0)">array_push</span><span class="" style="color:rgb(0,153,0)">(</span><span class="" style="color:rgb(0,0,136)">$userids</span><span class="" style="color:rgb(51,153,51)">,</span> <span class="" style="color:rgb(0,0,136)">$userid</span><span class="" style="color:rgb(0,153,0)">)</span><span class="" style="color:rgb(51,153,51)">;</span></div>

</li><li class="" style><div class="" style="padding:0px 5px;vertical-align:top;color:rgb(0,0,0);border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);background-color:rgb(255,255,255);line-height:21px">

                <span class="" style="color:rgb(0,153,0)">}</span></div></li><li class="" style><div class="" style="padding:0px 5px;vertical-align:top;color:rgb(0,0,0);border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);background-color:rgb(255,255,255);line-height:21px">

                <span class="" style="color:rgb(177,177,0)">if</span><span class="" style="color:rgb(0,153,0)">(</span><span class="" style="color:rgb(153,0,0)">in_array</span><span class="" style="color:rgb(0,153,0)">(</span><span class="" style="color:rgb(0,0,136)">$recOwnId</span><span class="" style="color:rgb(51,153,51)">,</span> <span class="" style="color:rgb(0,0,136)">$userids</span><span class="" style="color:rgb(0,153,0)">)</span><span class="" style="color:rgb(0,153,0)">)</span><span class="" style="color:rgb(0,153,0)">{</span></div>

</li><li class="" style><div class="" style="padding:0px 5px;vertical-align:top;color:rgb(0,0,0);border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);background-color:rgb(255,255,255);line-height:21px">

                        <span class="" style="color:rgb(0,0,136)">$permission</span><span class="" style="color:rgb(51,153,51)">=</span><span class="" style="color:rgb(0,0,255)">'yes'</span><span class="" style="color:rgb(51,153,51)">;</span></div>

</li><li class="" style><div class="" style="padding:0px 5px;vertical-align:top;color:rgb(0,0,0);border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);background-color:rgb(255,255,255);line-height:21px">

                        <span class="" style="color:rgb(0,0,136)">$log</span><span class="" style="color:rgb(51,153,51)">-></span><span class="" style="color:rgb(0,64,0)">debug</span><span class="" style="color:rgb(0,153,0)">(</span><span class="" style="color:rgb(0,0,255)">"Exiting isPermitted method ..."</span><span class="" style="color:rgb(0,153,0)">)</span><span class="" style="color:rgb(51,153,51)">;</span></div>

</li><li class="" style><div class="" style="padding:0px 5px;vertical-align:top;color:rgb(0,0,0);border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);background-color:rgb(255,255,255);line-height:21px">

                        <span class="" style="color:rgb(177,177,0)">return</span> <span class="" style="color:rgb(0,0,136)">$permission</span><span class="" style="color:rgb(51,153,51)">;</span></div></li><li class="" style>

<div class="" style="padding:0px 5px;vertical-align:top;color:rgb(0,0,0);border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);background-color:rgb(255,255,255);line-height:21px">                <span class="" style="color:rgb(0,153,0)">}</span></div>

</li></ol></div><div style><br></div><div style>Also how can we restrict the records from ListView, i had look in to <a href="http://trac.vtiger.com/cgi-bin/trac.cgi/browser/vtigercrm/branches/6.0.0/include/utils/ListViewUtils.php#L479">this</a>, But it make me sick.  :P</div>

<div style><br></div><div style>Thanks</div><div style>--</div><div style>Salim</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 29 April 2013 21:17, salim <span dir="ltr"><<a href="mailto:salimcmd@gmail.com" target="_blank">salimcmd@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span style="font-size:13.333333969116211px;font-family:arial,sans-serif;white-space:nowrap">Adam,</span> Thanks for your reply. I will look at it and let you know how it goes.<div>

<br></div><div><br></div><div>
<br></div><div><br></div><div>Thanks</div><div>--</div><div>Salim</div><div class="gmail_extra"><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On 29 April 2013 19:35, Adam Heinz <span dir="ltr"><<a href="mailto:amh@metricwise.net" target="_blank">amh@metricwise.net</a>></span> wrote:<br>


</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">That is a great idea, but not currently possible; I see no relevant code in isPermitted [1].  If you don't mind writing some code, I think you could set up something similar to how subordinate users are checked [2].  As far as current configuration options go, the closest thing I can think of would be to create two groups for each manager, i.e. Group::Bob and Group::Reports_to_Bob and set up sharing access rules.  Unfortunately, this is redundant with reports_to and you will get drift.<div>



<br></div><div>[1] <a href="http://trac.vtiger.com/cgi-bin/trac.cgi/browser/vtigercrm/branches/6.0.0/include/utils/UserInfoUtil.php#L745" target="_blank">http://trac.vtiger.com/cgi-bin/trac.cgi/browser/vtigercrm/branches/6.0.0/include/utils/UserInfoUtil.php#L745</a></div>



<div>[2] <a href="http://trac.vtiger.com/cgi-bin/trac.cgi/browser/vtigercrm/branches/6.0.0/include/utils/UserInfoUtil.php#L890" target="_blank">http://trac.vtiger.com/cgi-bin/trac.cgi/browser/vtigercrm/branches/6.0.0/include/utils/UserInfoUtil.php#L890</a><br>



<div class="gmail_extra"><br><br><div class="gmail_quote"><div><div>On Mon, Apr 29, 2013 at 6:20 AM, salim <span dir="ltr"><<a href="mailto:salimcmd@gmail.com" target="_blank">salimcmd@gmail.com</a>></span> wrote:<br>


</div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div>
<div dir="ltr">Hi Team.<div><br clear="all"><div>    Is there anyway to restrict records based on <b>reports_to</b> field. The role structure :- <b>roleA </b>under that there is another role called <b>roleB.  </b>And User :- <b>UserA1</b> and <b>UserA2</b>. Both of user using <b>RoleA.  </b>There is two more users <b>UserB1</b> And <b>UserB2</b>. The <b>UserB1</b> is <b>reports_to </b>field set to  <b>UserA1 </b>and<b> </b><b>UserB2</b> is <b>reports_to </b>field<b> </b>set to  <b>UserA2</b>. and both of them using <b>RoleB.</b><br>





     </div><div>    When a user log in to Application he/she can only access the  records that reports to that user. Example <b>UserA1 </b> he can only access the records that created by <b>UserB1. </b></div><div>

I think In current implantation of vTiger, <b>UserA2 </b> can see the<b> </b>records that created by <b>UserB1 </b>even if i set to reports_to field <b>UserA1</b></div><div><br></div><div><br></div><div>

<b>Roles</b></div><div>--------</div><div>roleA<br></div><div>      roleB</div><div><br></div><div><b>User</b></div><div>-----</div><div>UserA1 using role RoleA<br></div><div>

      UserB1 using role roleB and reports_to filed set to UserA1</div><div><div>UserA2 using role RoleA<br></div><div>      UserB2 using role roleB and reports_to filed set to UserA2</div></div><div><br></div>

<div><br></div><div>Thanks</div><div>--</div><div>Salim</div><br>
</div></div>
<br></div></div>_______________________________________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br></blockquote></div><br></div></div></div>
<br></div></div>_______________________________________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><span class="HOEnZb"><font color="#888888"><br></font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div>

<br></div>-- <br>Muhammed Abdul Salim<br>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Muhammed Abdul Salim<br>
</div>