Restrict Assigned to field on problem record

sureshp89882164
Tera Contributor

Need help on to restrict Assigned to field on problem record. Should be writable by current Assignment Group and Global problem management team only. Assigned to field should be writable by everyone when problem record is creating.

5 REPLIES 5

Ankur Bawiskar
Tera Patron
Tera Patron

@sureshp89882164 

you can use field level WRITE ACL on assigned to field. Use this in advanced script

if (current.isNewRecord())
    answer = true;
else
    answer = gs.getUser().isMemberOf(current.assignment_group) || gs.getUser().isMemberOf("Global Group name");

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

Ankur Bawiskar
Tera Patron
Tera Patron

@sureshp89882164 

use this if logged in user should be member of both current assignment group AND global problem management

the other script I shared in other comment uses OR condition for group check

if (current.isNewRecord())
    answer = true;
else
    answer = gs.getUser().isMemberOf(current.assignment_group) && gs.getUser().isMemberOf("Global Group name");

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

@sureshp89882164 

Hope you are doing good.

Did my reply answer your question?

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

@sureshp89882164 

Hope you are doing good.

Did my reply answer your question?

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