- 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 02:55 AM
Hi @ashish9,
Add required condition in Delete UI action.
For example - visible only for admin, then used ---> (current.canDelete() && gs.hasRole("admin"))
Thanks,
Sagar Pagar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2023 03:50 AM
Thanks, I have disable UI Action but still delete option is there in the list view.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2023 04:22 AM
Hi @ashish9,
You have deactivated the Global UI action which contains active list choice and not one of the others "delete"? And you have also updated the website after deactivation?
If my answer has helped towards a resolution, please accept my answer as accepted solution and give a thumb up.
Best regards
Anders
If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.
Best regards
Anders
Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/
- 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).