- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-14-2015 05:47 AM
Hi SNC,
I want to restrict all users but the ones having a certain role from being able to edit the 'state' field in incidents, when double-clicking in the list views.
Could I use an OnCellEdit script and have the role condition in there? Has anyone tried that?
Thanks!
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-14-2015 06:02 AM
Hi Dimitar,
Thanks for the update. You have to create a ACL of operation type "list_edit" and then restrict based on roles.
http://wiki.servicenow.com/index.php?title=Using_Access_Control_Rules#gsc.tab=0

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-14-2015 06:18 AM
Hi,
So you mean for other roles also it is giving that message?
You can turn on debugger to investigate it further.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-14-2015 06:32 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-14-2015 06:57 AM
Hi DImitar,
You have to write server side script and set return false or true.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-15-2015 07:10 AM
OK, got that.
Another approach I found was to just create a simple List Option UI Action, have it be applied only to users with certain roles and have the script in it do what I want to do.
Thanks for the answers!