The status of the change should only be changed by the member of the assignment group

Ktr
Tera Contributor

The status of the change should only be changed by the member of the assignment group and the rest should not be changed until they are assigned to their group. After change is created and assignment group is assigned then if any one want to edit change request it should allow only that assignment group members.

1 ACCEPTED SOLUTION

Only user who have "security_admin" can give "security_admin" to other user. To give that role also they should be elevated first.

If my inputs have helped with your question, please mark my answer as accepted solution, and give a thumb up.
Bharath Chintala

View solution in original post

7 REPLIES 7

RaghavSh
Kilo Patron

Create a write ACL on assignment group field of change request , with below code:

 

answer=false;

if(current.assignment_group!='' && gs.getUser().isMemberOf(current.assignment_group))

{

answer=true;

}

else if(current.assignment_group=='')

{

answer=true;

}


Please mark the answer correct/helpful accordingly.


Raghav
MVP 2023

Ktr
Tera Contributor

 

I am unable to see new option to create new ACL

Ktr
Tera Contributor

Ktr_0-1673425720873.png

 

@Ktr you need security admin role for that and you need to elevate priviliges before creating/editing ACLs

 

refer: https://docs.servicenow.com/en-US/bundle/tokyo-platform-administration/page/administer/contextual-se... 


Raghav
MVP 2023