Make assignment gorup readonly false in deferred state in Remediation task

Afroze Shaik
Tera Contributor

Hi Team 

I am trying to make the Assignment Group field editable when the State is Deferred in a Remediation Task (sn_vul_vulnerability) for a specific custom group. I am using a UI Policy and a Script Include, but it is only executing for admin users and not for non-admin users

 

 I want every user in a group to edit assignment group when state is deferred.

 

 

Best Regards,

Afroze

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

@Afroze Shaik 

simply use field level WRITE ACL on that field and use script in advanced section

answer = gs.getUser().isMemberOf('Group Name');

OR

you can use display business rule and check if logged in user is member of that group and store in g_scratchpad variable

Then use onLoad client script and get the scratchpad variable and based on that make field readonly or editable

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

I have used this, but it's no use.

 

Thank you 

@Afroze Shaik 

so please share what did you configure and what didn't work

what debugging did you perform?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader