How to make a user unsassignable in any situation with script

F_bio Santos
Kilo Sage

Hi everyone, is there a way to make a user unsassignable in any situation, like incidents, record producers, requests ... I just the user to not appear in the list. Is there any way to do this with a Script Include/Client Script/Business Rule. 

4 REPLIES 4

Sandeep Rajput
Tera Patron
Tera Patron

@F_bio Santos You need to simply create a simple reference qualifier to exclude a user as follows.

 

Screenshot 2024-01-31 at 7.48.07 PM.png

The problem with this @Sandeep Rajput is that there may be new record producers in the future and they dont want to have to deal with this "maintnance" everytime they create it, thats why Im trying to do it by script somethink that just makes that user unsassignable in any case.

@F_bio Santos In this case, I recommend you to use the advanced reference qualifier which which will use a script include method to return the reference qualifier query with sys_idNOTIN the comma separated list of sys_ids(sys_ids of those users who need to be excluded from the assignment) can be kept inside a system property and can be extracted inside a script include method using gs.getProperty(<property name>);

So, for exemple I would do a Script Include and then put it on the reference qualifier of the field in the dictionary right ?