Best way to allow field changes if user belongs to group A?

Snehal13
Kilo Sage

Should I use ACL or go for client scripting.

 

My requirement: if user is part of group A then only allow to update field.  Else not

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@Snehal13 

best way is to create field level WRITE ACL and use advanced script

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

Another way is to use Display business rule and use g_scratchpad variable and then use onLoad client script

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

View solution in original post

1 REPLY 1

Ankur Bawiskar
Tera Patron
Tera Patron

@Snehal13 

best way is to create field level WRITE ACL and use advanced script

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

Another way is to use Display business rule and use g_scratchpad variable and then use onLoad client script

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