- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2023 02:39 AM
I do not want anyone to delete Incident from Incident record or from the List view as well.
What will be the best option
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2023 04:47 AM
Hi @ashish9 ,
Out of the box, the only users who can delete an Incident record must have either the "admin" or "itil_admin" role. If your normal "itil" users are able to see the Delete button in the form or are able to delete an Incident from list view, then a custom ACL was likely created that grants them the ability to delete. To limit anyone from being able to delete an Incident from any view, your best approach is to update the "delete" ACLs on the Incident table. I would recommend allowing your "admin" users to still be able to delete the records, but if you truly want to prevent anyone from deleting Incidents, then your delete ACLs should hard code in the "Script" field "answer = false;" (note: you must click the "Advanced" checkbox to see the Script field).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2023 05:59 AM
Thanks Todd, it worked for itil_admin but admins still can delete it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2023 06:23 AM
There is an out of box delete ACL For the admin role set for "*". meaning admins can delete any record in the system if there is no other ACL preventing the access. So try creating a new ACL on the Incident table assigned to the admin role, with a script of "answer = false;" to deny the delete access.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2023 06:49 AM
I am adding admin in the same ACL it is not working so is it mandatory to create a new ACL for admins?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2023 06:52 AM
That should work adding it to the same ACL - but make sure the "Admin Override" checkbox is NOT selected.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2023 06:55 AM
Thank You so much @Todd Romansky