How to write User criteria for the catalog item based on the group

poornima batchu
Tera Expert

Hi All, 

I need to create a user criteria to apply it for a catalog item, If the user is a memeber of the group that starts with "Hr_payroll" and the user should not be a part of the "HR_payroll_UK" group.

How should I add this condition in the scriptiing..?

Please help

1 ACCEPTED SOLUTION

David Aldridge
Giga Guru

@poornima batchu if the group names are not going to change frequently, you could try the following to avoid scripting...
Create the User Criteria record with one group to be included, then when you go to edit it, you will see the "Add/Remove multiple" option.

DavidAldridge_0-1701229223367.png

From the Edit Members modal, you can set a filter for "Name starts with HR_payroll" then select all from the left and move to the right. Then remove the two groups you want to exclude back to the left and save. Job done 🙂

DavidAldridge_1-1701229503832.png

 

View solution in original post

6 REPLIES 6

David Aldridge
Giga Guru

@poornima batchu if the group names are not going to change frequently, you could try the following to avoid scripting...
Create the User Criteria record with one group to be included, then when you go to edit it, you will see the "Add/Remove multiple" option.

DavidAldridge_0-1701229223367.png

From the Edit Members modal, you can set a filter for "Name starts with HR_payroll" then select all from the left and move to the right. Then remove the two groups you want to exclude back to the left and save. Job done 🙂

DavidAldridge_1-1701229503832.png

 

abirakundu23
Mega Sage

Hi @poornima batchu,

Please respond if my suggestion helpful for your idea or knowledge.