We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Location to be locked for only specific users to update to add it to any CI

ark257
Tera Contributor

I would like to make the location to be updated or added to any CI by only few members. How to do it ?

3 REPLIES 3

palanikumar
Giga Sage

You can create a ACL to restrict updating this field. 

Alternatively you can do the following:

1) Create a business rule that ignore update to this field based on the user

2) Create a Data Policy and Make this field read only based on the role

 

Thank you,
Palani

Hi @palanikumar I have tried with below ACL but it didn't work for particular X location

 

 
var allowedGroup = 'location - X-';

if (gs.getUser().isMemberOf(allowedGroup)) {
    answer = true
} else {
    answer = false;
}

ark257
Tera Contributor

Hi @palanikumar to avoid confusion i want you to know this should be the case only for one particular location not for all locations