Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

In change request form - assignment group field , how to make only those assignment groups visible in which logged in user is present ?

Ajay Sharma2
Tera Guru

In change request form - assignment group field , how to make only those assignment  groups visible in which logged in user is present. I want to make these changes only on change request form and not on incident and service request form.

1 ACCEPTED SOLUTION

 

Just tested this out and it is working

javascript: 'sys_idIN'+ gs.getUser().getMyGroups().toArray().join(",")

find_real_file.png

View solution in original post

5 REPLIES 5

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi Ajay,

 

This can be done via Reference qualifiers. Pls refer below example and adjust it as per your requirement.

https://docs.servicenow.com/bundle/geneva-servicenow-platform/page/script/server_scripting/task/t_ExJSConstrainAssignmentGroupField.html

 

You can create a Dictionary override on change request Table so that this reference qualifier is not applied to Other Tables.

https://docs.servicenow.com/bundle/london-platform-administration/page/administer/data-dictionary-tables/task/t_DefineADictionaryOverride.html

 

-Pradeep Sharma

Alikutty A
Tera Sage

Hello,

You need to add a Dictionary override on the Assignment group field for the Reference qualifier and add the following script.

javascript: SYS_IDIN gs.getUser().getMyGroups().toArray().join(",")

Thanks

 

Just tested this out and it is working

javascript: 'sys_idIN'+ gs.getUser().getMyGroups().toArray().join(",")

find_real_file.png

Omkar Mone
Mega Sage

Hi 

Write a Reference Qual Condition for assignement group with dictionary over with this :

javascript :gs.getUser().getMyGroups();