Is it possible to restrict the ACL to only one particular view on a table?

Sathwik1
Tera Expert

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>?

7 REPLIES 7

Ankur Bawiskar
Tera Patron
Tera Patron

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

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

@Sathwik 

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

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Aman Kumar S
Kilo Patron

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

Best Regards
Aman Kumar