ACL issue

Vurukonda Sai 1
Tera Contributor

ACL issue. 

I have create Read ACL on HR case table u_hr_case. 
i have created Group HR_CN and added 2 user in the group. when they open the HR case record All filed shoud be read mode like Read acces only. 

VurukondaSai1_0-1751984387239.png

I have used below 3 codes 

// // // Allow users in the HR_Marelli_CN group to read HR Cases
// // (function() {
// //     var user = gs.getUser();
// //     if (user.isMemberOf('HR_Marelli_CN')) {
// //         answer = true;
// //     } else {
// //         answer = false;
// //     }
// // })();

// var gr = new GlideRecord("sys_user_grmember");
// gr.addQuery("user", current.u_caller_id);
// gr.addQuery("group", "fd665c24c36e62507ee9da4bb001310e"); //HR_Marelli_CN
// gr.query();
// if (gs.getUser().isMemberOf("HR_Marelli_CN") || gr.next()) //HR_Marelli_CN users should see tickets raised by their team members
//     answer = true;

//  (function() {
//     var userGR = gs.getUser(); // Get current user
//     return userGR.isMemberOf('HR_Marelli_CN'); // Only allow read if user in group
// })();


Kindly help me on this issue. 
9 REPLIES 9

J Siva
Tera Sage

Hi @Vurukonda Sai 1 

You should create Write type ACL to make the fields Read-only.

Please check if there's any existing Write ACL on the HR case table and modify accordingly.

Regards,

Siva

 

I have tyred but not working all hr case are write access.

 

@Vurukonda Sai 1 You need to validate the existing write ACLs.

Share the pics of those if possible.

Those write ACLs need to be updated.

VurukondaSai1_0-1751988104959.png