Only need to display particular assignment groups in assignment group field of change request table.

praveen1231
Tera Contributor

Hello Everyone,

I need to restrict access to the Change Request form for anyone outside of the specified groups. This restriction applies to Normal, Standard, and Emergency changes. Only the assignment groups listed below should be able to raise change requests or need to display in assignment_group field. Please let me know if you had any idea. 

praveen1231_0-1722970264394.png

Thanks regards

Praveen

 

 

 

@Ankur Bawiskar 

5 REPLIES 5

Vignesh21
Kilo Guru

Hi Praveen,

 

Try using reference qualifier 

Vignesh21_0-1722974675653.png

 

Coming to change request creation by only the above groups, then create ACL for write on change request table and check if user belongs to the assignment group then return true in ACL script

Hi @Vignesh21 thanks for your timing! Can you please elaborate ACL conditions and how to check user belongs to the assignment group with detailed screen shorts for my better understanding. Thanks again.

Hi @praveen_rajan 

 

You can use this by creating a property 

example:

1. go to sys_properties.list.do

2.  create new

                 

Vignesh21_0-1723136367342.png

 

isMemberOf()Returns true if the user is a member of the given group, false otherwise.Takes either a group sys_id or a group name as an argument.

 

You can add this parameter in the filter condition 

 

gs.getUser().getUserByID(current.sys_id).isMemberOf(gs.getProperty('name of your property'))

Hi @praveen_rajan ,

If it was helpful please let me know.