Limit assignment group selection based on user's group + one exception

JohnDF
Mega Sage

Hi everyone,

 

I need help with a advanced reference qualifier. 

If logged in user belong to a group which name start with "SN-CC" then he should see only his groups he belongs to + the one exception group with sys_id xyz.

 

All other logged in user which not belongs to a group which name start with "SN-CC" then he should see all assingment groups.

Thanks for help!

1 ACCEPTED SOLUTION

Hello @JohnDF ,

 

Does this resolved your issue?? If yes, Kindly mark the answer ✔️Correct or Helpful ✔️If it addresses your concern.

 

Regards,

Siddhesh

View solution in original post

16 REPLIES 16

@Siddhesh Gawade  hi,

 

I added a gs.addInfoMessage() under line 7 and it didnt popped up.

 

maybe I need to add the reference qual scrip include call on case level? becasue I try to open the assingmend field from case and not from incodent or task.

Hello @JohnDF ,

 

Correct, then you should add the reference qualifier on case table.

@Siddhesh Gawade 

should than the script include in customer service scope?

 

Is this right on the reference qualifver on case?

JohnDF_0-1703230831390.png

 

No need. just make sure script include is running on all application scopes.

 

Do you want this only for case record right? If yes then create a dictionary override for case table for assignment group field.

 

If you want for all table were the same assignment group field is used then try something like this reference qualifier

global.GroupFilter().filterGroups()

 

If you faced the same issue try the below reference qualifier format

global.GroupFilter().filterGroups()