Is it possible to restrict the ACL to only one particular view on a table?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-29-2022 01:33 AM
Is it possible to restrict the ACL to only one particular view on a table?
Ex: In a incident table we are having three views, now I want certain ACL's to work only on one view.. is it possible>?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-29-2022 03:27 AM
Hi,
in ACL script you can check the view but I doubt if that would work fine or not
get the view name using this
if(gs.action.getGlideURI().toString().indexOf('viewName') > -1){
gs.info('your view found');
}
else{
gs.info("view not found");
}
Regards
Ankur
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-29-2022 11:22 PM
Hope you are doing good.
Did my reply answer your question?
If my response helped please close the thread by marking appropriate response as correct so that it benefits future readers.
Regards
Ankur
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-29-2022 03:35 AM
Not a very good idea to restrict a field based on view using ACL, rather make it read only for a view using client script
Aman Kumar