Users with sn_hr_core.basic role are unable to select COE and HR services when creating new HR case

Akshay Patil4
Tera Expert

Hello,

 

When users with role sn_hr_core.basic role tries to create an new HR case from backend the COE and HR service feilds doesn't show any data in it. I have attached screenshot for the same. I have already checked the related ACLs and case creation UI page all looks good. Please provide your inputs if anyone faced similar issue 

 

@Kiel Sanders 

 

AkshayPatil4_0-1694077096438.png

 

1 ACCEPTED SOLUTION

Akshay Patil4
Tera Expert

Hello All,

 

Thank you for your response!! But seems I figured out why this was happening.

 

It seems this is expected behavior as we are impersonating the HR user with basic role. There is OOB read ACL on sn_hr_core_case  table which have the scripted condition to refer script include "hr_CoreUtils" which calls impersonate check function to  check the impersonation property value. If the value is true it won’t display any data. We can change the property value to false so it will allow us to select both COE and HR Service. Though its not recommended to change the property value as this has been set to true to prevent HR data. But in exceptional scenarios such as Upgrade testing we can change it till the time testing get completed.

 

Thanks

Akshay Patil

View solution in original post

5 REPLIES 5

Akshay Patil4
Tera Expert

Hello All,

 

Thank you for your response!! But seems I figured out why this was happening.

 

It seems this is expected behavior as we are impersonating the HR user with basic role. There is OOB read ACL on sn_hr_core_case  table which have the scripted condition to refer script include "hr_CoreUtils" which calls impersonate check function to  check the impersonation property value. If the value is true it won’t display any data. We can change the property value to false so it will allow us to select both COE and HR Service. Though its not recommended to change the property value as this has been set to true to prevent HR data. But in exceptional scenarios such as Upgrade testing we can change it till the time testing get completed.

 

Thanks

Akshay Patil