How to overwrite the "Security does not allow the execution of that action against the specified record" message?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2020 03:51 AM
Hi ,
Please let me know if you have any suggestions to overWrite the " Security does not allow the execution of that action against the specified record" with custom message. I don't want to alter the existing condition of the UI action and if doen't met the condition it will populate the custom message but not the "Security does not allow the execution of that action against the specified record" message.
Regards,
Venkat.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2020 11:37 PM
Hi Mark,
Is this can be done based on the specific condition for specific table?
Regards,
Venkat

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2020 11:49 PM
Hi Mark,
Could you please help me out with the script name which is responsible triggering the above UI message?
Thank you.
Regards,
Venkat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2020 04:02 AM
Hi Venkatesh,
I doubt this can be done without changing the message in messages table which would be a global impact.
Using client script won't work here as I assume your UI action would be List Context Menu.
Also sometimes the message could be shown even when ACLs evaluate to false although UI action condition satisfies
https://hi.service-now.com/kb_view.do?sysparm_article=KB0725860
https://hi.service-now.com/kb_view.do?sysparm_article=KB0719214
Mark ✅ Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader