Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to restrict Views in list and form based on Roles

shilpa26
Tera Contributor

Hi,

 

I have a requirement to set a view(service_request) as default on a table for all users except for users with Admin role. That is users that do not have admin role should only see service_request view and should not be allowed to change the view through context Menu both in List and Form and users with Admin should be able to change the view. I tried to use View Rules but observed it hides the view option irrespective of the roles. Is there any other way to achieve this?

 

Thanks in Advance,

Shilpa

2 REPLIES 2

Michael Laban
Tera Expert

To make the other views unavailable you could  go to UI View (sys_ui_view.list) for each view and the role of 'admin' to the view.  This would make that view (list and form) available only to a user with the admin role.  You may need to validate if the view(s) are used in any redirect logic in places like business rules, etc, and modules. 

Suneesh
Tera Contributor

Hi @shilpa26 Please find product document 
https://www.servicenow.com/docs/bundle/zurich-platform-user-interface/page/administer/navigation-and...

Please mark my answer correct and helpful if this works for you

Thanks and Regards,
Suneesh

Please mark my answer correct and helpful if this works for you

Thanks and Regards,
Suneesh