MSS Direct Reports Security Rule

 2 Replies
 0 Subscribed to this topic
 15 Subscribed to this forum
Sort:
Author
Messages
Eugene Sarabia
Basic Member
Posts: 7
Basic Member

    Has anyone able to secure the Manager Self Service to only allow access to direct reports and employees reporting under the supervisors? I had used the Lawson examples but I am getting errors and it is not working. Here's the formula:

       
       if(user.isSupervisorOf(getIdFromEmpNbr(lztrim(table.COMPANY),lztrim(table.EMPLOYEE))))'ALL_ACCESS';
    else'NO_ACCESS';

     

    John Henley
    Posts: 3353
      You should be using the isSupervisorOfEmpInHR(lztrim(table.COMPANY),lztrim(table.EMPLOYEE)) function for checking HR supervisor hierarchy. isSupervisorOf is for using structures implemented via Lawson RM.
      Thanks for using the LawsonGuru.com forums!
      John
      Eugene Sarabia
      Basic Member
      Posts: 7
      Basic Member

        Thanks, John. This works out good for the managers direct reports.