- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2023 04:52 AM
Hi Everyone,
I have a requirement to "disable/make it read only" the 'remove' option for Custom table please refer the below screenshot.
And I tried creating the Delete ACL on sys_attachment table with condition as "table name is <custom table name>" and script as if(gs.getUser().hasRole('admin')){
answer = true;
}else{
answer = false;
}
But still not working Is there anything I should update for this in order to work.
Thanks in Advance,
Bala
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2023 05:47 AM
Did you debug the security rules from left nav?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2023 07:03 AM
@Ankur BawiskarI did Debug security rules but no ACL's were showing up in the debug screen most of them are angular
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2023 05:38 AM
@Ankur Bawiskar I tried using before delete BR as well but how it works is - When the User ticks the checkbox and clicks on Remove button, it appears as attachment is removed (actually its not deleted) but on reload of the form attachment will be visible.
This is not the ideal solution because User thinks that attachment is deleted/removed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2023 05:40 AM
ACL is the only way then
Did you check which ACL is allowing then?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2023 05:43 AM
@Ankur Bawiskar How can I identify that particular ACL is allowing delete access?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2023 05:47 AM
Did you debug the security rules from left nav?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2023 07:03 AM
@Ankur BawiskarI did Debug security rules but no ACL's were showing up in the debug screen most of them are angular