How to restrict Views in list and form based on Roles
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2025 07:36 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
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
Thanks and Regards,
Suneesh
