Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Make all fields editable in change record for particular group members when state is not closed.

shaik riyaz1
Tera Contributor

I wrote a write acl(table.*) on change request records to allow only specific group members to edit the records. the ACL script is working fyn as i can see the logs, however, the change request form is still appearing as read-only for all fields, even for users who should have write access.

There is one write acl on table level and tried deactivating that tested but still fields are readonly.

 

//answer = false;
//answer = true:
gs.log('hellooo from riyaz start'+ gs.getUser().isMemberOf('Group name'));
if(gs.getUser().isMemberOf('Group name')){
    answer = true;
    gs.log('hellooo from riyaz if'+ answer);
}else{  
    answer = false;
    gs.log('hellooo from riyaz else'+ answer);
}
2 REPLIES 2

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @shaik riyaz1 

I’m not a developer, but I want to share my thoughts: making the change fields editable in a Closed state—even for one group—is not recommended. It’s a violation of the process. Could you clarify your business case for this?

Also, please check the UI policy in place, which makes all fields read-only when the change moves to a new state. This might conflict with your ACL settings, but again, avoid overriding this—it would still be a process violation.

 

https://www.servicenow.com/community/developer-forum/how-to-make-field-editable-acl/m-p/1587925

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Ankur Bawiskar
Tera Patron
Tera Patron

@shaik riyaz1 

you should also ensure Table.None WRITE ACL allows write to them

Simply having Table.* won't help

-> so create Table.None WRITE ACL and add same script there in advanced section

See below image for ACL evaluation

AnkurBawiskar_0-1765522992221.png

 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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