MSS Direct Reports Security Rule

 2 Replies
 0 Subscribed to this topic
 18 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: 3364
New Poster
New Poster
Congrats on posting!
Engaged Reader
Engaged Reader
You are an engaged reader!
Avid Reader
Avid Reader
Avid Reader art thou!
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.