Restrict the availability of a HR service in case creation page in Agent Workspace

Srinath9
Tera Guru

Hi Everyone.

 

How to restrict access for HR services in case creation page in Agent Workspace and Native UI based on Assignment Groups?

Any help is appreciated!

 

Thanks,

Srinath

1 ACCEPTED SOLUTION

Hi @Srinath9 

Sorry your requirement cant be achieved by HR criteria.

Write one Before query BR on HR Service so that it will show only limited HR Services to the end user . 

For example, if you want to show HR Service 'Payroll discrepancy' to HR Payroll group alone then you can use below script in before query BR. 

if(!gs.getUser().isMemberOf('HR Payroll'){  // if logged in user is not member of hr payrolll

current.addEncodedQuery('name!=Payroll Discrepancy);   //this will show all HR Services except Payroll

}

 

If you want to restrict the read and write access to the respective HR Payroll case table then use COE Security Configuration

 

View solution in original post

18 REPLIES 18

Sarika S Nair1
Kilo Sage

 Hi @Srinath9 

Create HR Criteria and use that in HR Service.

 

Hi @Sarika S Nair1 ,

I have created HR criteria and used that in HR service, but it's not working as expected. The HR service is not even visible to admins. My question is, how and where do we mention the group names, the members from which, will have the visibility of this HR service in case creation page (Agent Workspace).

Thanks,
Srinath

 

Sarika S Nair1
Kilo Sage

Hi @Srinath9 , 

Can you share the HR Criteria which you are using?.

 

 

Hi @Sarika S Nair1 ,

Please find the below attached documents.

 

1) Attached the HR criteria in HR Service Configuration page

Srinath9_0-1707730555435.png

 

2) Below is the HR Condition for HR criteria,

Srinath9_1-1707730657882.png


Please let me know if you need any other information.

Thanks,

Srinath