HRSD - Subject Person should not see PIP case.

Manal  AQUIL
Tera Contributor

Hi Community members, 

 

I have use case whenever we raise PIP (performance improvement) service then for those HR cases, subject person should not see their case if we they are the agent since PIP can be raised even for a agent . 

 

For this I have created read ACL on sn_hr_er_case and checked the HR service name in filter condition with below mentioned script .

 

var answer ='';
if(current.subject_person === gs.getUserID()) {
    gs.info('logged in user is subject person' + gs.getUserID() + 'subject' + current.subject_person);
    answer = false;
}
 
log is coming but the cases are still visible .. Hence this is not working .
 
Kindly suggest the solution
3 REPLIES 3

Sandeep Rajput
Tera Patron
Tera Patron

@Manal Aquil It seems that some other read ACL is granting the subject person read access on the case. Please debug other read ACLs and see which ACL is granting the access.

 

Also, did you try to use the OOTB configuration available on the HR Service form to hide cases from the subject person?

 

Screenshot 2024-04-01 at 5.29.40 PM.png

Ideally, unchecking this box on the HR Service should hide the case from the subject person.

Manal  AQUIL
Tera Contributor

@Sandeep Rajput Thank for responding . 

 

This checkbox (show case to subject person) on HR service hides the case to if subject person has end user role and trying to view cases on portal . 

 

But if the subject person is HR agent who ideally works on case then he case see the case even if the agent himself is the subject person .

@Manal Aquil In this case, identify the ACL which is granting the read access to agent, in the script of the same ACL check if the logged in user is the subject person and if they have agent role and if the hr_service configuration is to hide the case from subject person return false if the above conditions meet else return true to grant access.

 

Hope this helps.