How to make a incident form read only for specified group ?

1dusjhyahnt
Tera Contributor

How to make a incident form read only for specified group by using ACL 

1 ACCEPTED SOLUTION

Rajesh_Bhise
Tera Guru

Hello @1dusjhyahnt,

 

I would use below script to achieve the requirement via ACL.

 

Create the "Write" ACL on target table and put below script.

 

answer = true;

if(gs.isMember("<Desired _group_name>")){

answer= false;

}else{

answer = true;

}

 

Kindly mark my answer as helpful✔️ and the solution accepted💯 if it serves the purpose.

 

Thanks and Regards,

Rajesh

View solution in original post

15 REPLIES 15

When you are creating a ACL at the start only you could add the table and the field you want to restrict.

 

Already Did @Omkar Bhamare 

Hi @1dusjhyahnt 

 

LearnNGrowAtul_0-1701951699995.png

 

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

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

Omkar Bhamare
Tera Guru

Hello,

 

You can check the logged-in user role and current forms status value based on that you can make the fields read-only using answer = false on field level acl like incident.org1 

the script in ACL would be like 

answer = true;

if(gs.isMember("Assignment Group Name")){

answer= true;

}else{

answer = false;

}

using this type of script you could be able to achieve.

 

Thank You!

Please mark helpfull if your issue gets solved.

answer = true;

if (gs.isMember("Software")) {

answer = true;

} else {

answer = false;

}
 
I am using just copy and paste , but it's not working