- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2023 12:04 AM
I need to show Ui Action "View" to only "itil" users.
and other users should not see this UI Action.
How to find this UI Action and add conditions.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2023 12:37 AM - edited 01-03-2023 01:08 AM
Navigate to system UI -> UI Context Menus
filter the column name with 'view'
open the form and you will see condition field, you can apply the conditions.
To know more about customize list context menus, explore serivcenow docs product link
If this helps, please mark this as correct/helpful.
Thanks,
Krishnamohan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2023 12:09 AM
You can't have the best solution for that approach. I suggest you provide them a separate view for their role.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2023 12:19 AM
Hi @Naveen Kumar ,
Try the below
(function overrideView(view, is_list) {
if( (gs.hasRole('admin')) && !(gs.hasRole('itil')) ){
answer = 'finance_custinc'; // set the new view to answer
}
})(view, is_list);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2023 12:37 AM - edited 01-03-2023 01:08 AM
Navigate to system UI -> UI Context Menus
filter the column name with 'view'
open the form and you will see condition field, you can apply the conditions.
To know more about customize list context menus, explore serivcenow docs product link
If this helps, please mark this as correct/helpful.
Thanks,
Krishnamohan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2023 01:20 AM
"view" is restricted to users with the view_changer role.
If you don't want people changing view then remove this role from them.