MSS Direct Reports Security Rule

Sort:
You are not authorized to post a reply.
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
    Senior Member
    Posts: 3348
    Senior Member
      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.

        You are not authorized to post a reply.