want to remove delete ui action for all tables in servicenow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2023 10:09 AM
I want to remove delete ui action from all tables in ServiceNow. Only admin have access to delete records.
Do i need to update ui action/ACL for every single table or can i have any property to update so that it will remove it from all tables at once?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2023 10:19 AM
Hi @arjun0101
Answer is yes but lets take other way, create new ACL and for all tables and try and once work done, deactivate the new ACL.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2023 10:57 AM
@arjun0101 Apart from adding admin role in Delete ACLs, you can also create business rules with onBefore delete operation on different tables and inside script you can check
// Add your code here
if (!gs.hasRole('admin')) {
gs.addInfoMessage('Delete Operation not allowed for non admin users');
current.setAbortAction(true);
}
Hope this helps.