restricting access to certain fields on a form

Albert Chan
Mega Expert

Hello,

I have a requirement that the status field on the cmdb_ci form should only be editable by an admin. We have a role that allows general editing on this form with an ACL so I tried to create a UI policy to make the required field read only, but I guess the ACL trumps the UI policy because I didn't get my intended effect.

Is there a script that I can add to the ACL to make this field read-only? I am not familiar with scripting at all, but I am not seeing an alternative.

Thanks in advance,

Albert

7 REPLIES 7

manikorada
ServiceNow Employee
ServiceNow Employee

Albert,



Have a Write ACL on Status field and in the Roles tab add 'admin'. This should serve your purpose.


Thanks for the reply Mani. I'm not sure if your solution would work. In my original post, I don't know if I mentioned this, but I want the people with that role to still write to the whole form except for that specific field. So there's already an ACL for people with that role to write to the form.



Maybe I'm just misunderstanding what you're saying. Could you clarify what you meant?



Thanks.


Albert


Albert,



Though you have write access to the entire form. You can have Write ACL on single field also to restrict or give access.


I guess I'm not seeing or don't know where I can call out a specific field to be restricted. Or maybe I'm not understanding what you're trying to tell me. I may just have to refresh myself on the wiki.