how to show general case hr services to particular group

Vani14
Tera Contributor

we have create hr services for general case and we need to show only particular group.
we wrote query business rule but its not working could you please help me to achieve this

 

 

Vani14_0-1691418776464.png

 

6 REPLIES 6

Ravi Chandra_K
Kilo Patron
Kilo Patron

Hello @Vani14 

Greetings!

You can achieve it via OOB COE ACL security policies.

refer:

https://youtu.be/vYV_k11lry0

Please mark the answer as correct solution and helpful if helped.

Kind Regards,

Ravi Chandra

michaelj_sherid
ServiceNow Employee
ServiceNow Employee

The last condition is missing the (). I can get this to work using an example of - !gs.getUser().isMemberOf('HR Tier 3'). 

 

I do have to caution you that this logic will change the logic of the OOtB product. We use the Subject Person to see what HR Services would be available for the case. Can you give more details of your use case? We are making assumptions that you are creating a case and want to hide the services based on the condition of the logged in user. The fine details will allow us to help a bit further.

 

Regards,

Mike

@michaelj_sherid    We create a few HR services for the general case COE, however those HR services must be visible to a specific group of members.

@Vani14 is it working now that you have updated your code as I pointed out earlier? Just keep in mind if you ever use the HR Criteria on HR Services, this may impact your use case.

 

Please mark the answer as correct solution or helpful if I was able to provide assistance.

 

Regards,

Mike