<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">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">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">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><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 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>_______________________________________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br></blockquote></div><br></div></div></div>