How to restrict form view based on user role?

Sim1
Tera Contributor

Hi,

I have a requirement to create a view rule on incident table to not display self service view in list for non - admin users, Only admin users should be able to access the 'self service' view option from the context menu of incident.

So, it will be helpful to know if there is any way to hide the self service view from the list.

Sim1_0-1681639563952.png

 

2 REPLIES 2

Uncle Rob
Kilo Patron

Trying to figure out how this would be useful as Self Service view contains a subset of the Default View.

Michael Laban
Tera Expert

You can go to the sys_ui_view.list, find the view of Self Service, and add the role of 'admin' to the UI View.  This will remove the view form the list and the form for anyone that does not have the admin role.  Note, you may need to check if there is any redirect logic in places like business rules or client scripts as well as modules that may be targeting a specific view.