The CreatorCon Call for Content is officially open! Get started here.

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

Hi @Rajdeep Ganguly ,

 

Thanks for your response, but unfortunately, I don't have the security admin role in the instance where I need to develop this requirement.

 

Regards,

Srinath

Hello,

I think you reply is to restirct the field not to display the data in the field as requested: restrict the  'Payroll Discrepancy' HR service from all other groups except HR Payroll.

I think should be BR before query or client script.

Can you confirm please?

Hello,

I think you reply is to restirct the field not to display the data in the field as requested: restrict the  'Payroll Discrepancy' HR service from all other groups except HR Payroll.

I think should be BR before query or client script.

Can you confirm please?

Allin_007
Tera Contributor

Hi @Srinath9 , @Sarika S Nair1 : Why did we not used hr criteria condition from table 'sys_user_group' and added condition for group email to be HR payroll email?