want to apply restriction on 3 fields in SCTask. Based on assignment group type

Ash41
Kilo Sage

Hi Team, 

 

I want to apply restriction for assignment group type is "A" and logged in user is member of group. Then he should not able to update 3 fields on SCTASK table. 

 

Please suggest. 

4 REPLIES 4

Robbie
Kilo Patron
Kilo Patron

Hi @Ash41,

 

This is achievable via a UI Policy and Script Include. Handily this is quite a common question and has been solved in the below post with sample code and screen shots. Check it out and come back to me if you have any questions or queries.

 

To help others (or for me to help you more directly), please mark this response correct by clicking on Accept as Solution and/or Kudos.


Thanks, Robbie

 

https://www.servicenow.com/community/developer-forum/ui-policy-if-a-user-is-part-of-a-group-make-var...

Hi Robbie, 

 

Thanks for response, I have 2 conditions to check.

Logged in user is part of assignment group and also if that assignment group type contains "ITIL". Then fields needs to restricted.

 

Please suggest.

Hi @Ash41,

 

So the example provided checks whether the logged in user is a member of the assignment group.

When you say that assignment group contains ITIL, are you referring to whether the group has the ITIL role, or if the group name contains ITIL? I assume the former but wanted to check.

 

@Ash41- So as to help others (or for me to help you more directly), please mark this response correct by clicking on Accept as Solution and/or Kudos.


Thanks, Robbie

Hi Robbie, 

 

As we have group type field on group table. If it contains ITIL for specific group which is in assignment group in task being worked by logged in user.