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.

Non-itil users should be able to add comments on change request

Damayanti Sarod
Tera Guru

Hi Community,

I have few non itil users in a newly created group, and I want only those non-itil users which are part of that group should be able to write comments on change request. How to achieve this without giving sn_change_write role to the newly created group and its users.

2 REPLIES 2

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Damayanti Sarod 

To add a worknote, a user must have at least the ‘change write’ role. If you are bypassing this to add a worknote, you are violating the policy.”

*************************************************************************************************************
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

@Damayanti Sarod 

who are the non-itil users?

itil users are agents working on INC/PRB/CHG

Why you want non-itil users to write Comments?

I agree with Atul here -> why to violate standard ITIL practice

-> OOTB task.comments field level WRITE ACL requires itil user

AnkurBawiskar_0-1765276755876.png

If you still want then ensure you do this

-> create field level WRITE ACL on comments field for CHG table

-> use script and see user should have either itil role or part of that group

if (gs.hasRole('itil') || gs.getUser().isMemberOf('Group ABC'))
    answer = true;
else
    answer = false;

-> also ensure your user has read access to comments, if they can't see they can't edit. If required you will require new field level READ ACL for comments as well on CHG table

-> also remember those users should satisfy Table.None WRITE ACL as well on CHG table without which your field level WRITE is of no use

AnkurBawiskar_1-1765277076426.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