- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-20-2016 08:23 AM
Hi there,
I have a requirement where only single group of people should able to check the checkbox and should read only to others. How can i do this?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-20-2016 04:13 PM
If the field is set to Read Only in the dictionary, then it will be read
only everywhere in the UI, and can only be programmatically updated.
Read only fields are best used when they are calculated or updated in some
way that isn't manual.
Make it not read only and your ACL will take over.
On Tue, Dec 20, 2016, 6:04 PM omsarah <community-no-reply@servicenow.com>

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-20-2016 08:35 AM
Hello Sarasaamani,
If the data is not dynamically changing on the form, that is, the read-only or edit attribute does not change after the form is loaded, ACLs are recommended. ACLs are evaluated and enforced entirely on the server, making them much more secure than UI policies and client scripts.
You can put the logic(i.e allow only one user and restrict for others) with help of script by creating an ACL on the field level. Please let me know if you have any question.
Reference:
Security Best Practices - ServiceNow Wiki
http://wiki.servicenow.com/index.php?title=Using_Access_Control_Rules
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-20-2016 04:02 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-20-2016 04:13 PM
Hello Sarasaamani,
Replace your script with below line.
answer = gs.getUser().isMemberOf( Â'PASS GROUP NAME HERE');
To get an access to the user all conditions has to be met.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-20-2016 06:16 PM
Hi Pradeep,
Thank you so much for your help. i removed the script and added role. Its working now.
Sara