How do you make a field read only except for admins

cristie
Kilo Contributor

How do you make a field "Read Only" for all but Admins.   I made it read only but then it was read only for everyone including Admins.

9 REPLIES 9

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi Cristie,



I am assuming that you have setup ACL's for this requirement.If yes, then you should select "Admin overrides" in the ACL's you have setup. Please check section 2.1 for more info on Admin overrides.


Using Access Control Rules - ServiceNow Wiki



If you have done at client script level to hide only few fields or so then you have to do a role check. Refer the below link for more info.


GlideUser (g user) - ServiceNow Wiki



Please let me know if you have any questions.


No I did not create an ACL.   When I tried I went to System Security>Access Control (ACL) but there is no NEW button......Advice?


Make sure the admin user have the "security_admin" role and then you have to elevate roles which will be session specific.


Mike Allen
Mega Sage

Put a write ACL on the field, then make sure the role required has the admin role listed.