Sandeep Rajput
Tera Patron
Tera Patron

Recently, I came across an interesting question where the questioner wanted to hide a menu item in top menu bar in the Next Experience UI (Polaris).

 

Problem Statement:

User wanted to hide Workspace menu item in the menu bar.

Screenshot 2023-04-29 at 10.27.15 PM.png

 

First thing first, the menu we are referring to is called Unified Navigation Menu.

 

Screenshot 2023-04-29 at 9.50.14 PM.png

Here is the list view which appears when you click on Unified Navigation Menu option.

Screenshot 2023-04-29 at 9.50.23 PM.png

 

Initially, it appears quite an easy task to simply deactivate this menu item by setting the Menu Active field to false.

Screenshot 2023-04-29 at 9.50.31 PM.png

However, the assumption falls flat on its face when we try to change edit this record despite having an Admin role.

 

Up on checking the ACL, I found this one.

Screenshot 2023-04-29 at 9.51.00 PM.png

By checking the Admin override record and saving the ACL, I was under the impression that now the menu item can be deactivated.

 

Screenshot 2023-04-29 at 9.51.54 PM.png

Indeed, the record was editable, however the moment I hit save, this error appears.

Screenshot 2023-04-29 at 9.52.06 PM.png

There is business rule in place which is not letting me update an existing menu item. Simply deactivate this BR by unchecking the Active checkbox and saving the business rule.

Screenshot 2023-04-29 at 9.52.23 PM.png

Now finally you should be able to deactivate this Workspace menu item.

Screenshot 2023-04-29 at 9.53.04 PM.png

This is how the menu looks before deactivating the Workspace Menu

 

Screenshot 2023-04-29 at 10.27.15 PM.png

This is how it looks after deactivating the Workspace menu.

 

Screenshot 2023-04-29 at 10.32.06 PM.png

Caution: There must be a solid reason why ServiceNow doesn't want Admins to deactivate the Unified Menu options. Hence have extreme caution while applying this solution.

 

Note: Due to cacheing you might still see the workspace menu item in the menu bar, simply chose to impersonate with another user and end the impersonation. This time the Workspace menu item will not be there.

 

Hope this helps.

Comments
Neil5
Tera Contributor

Thanks! 

 

This KB from SN says to delete it entirely. Good to know we have different options.

Community Alums
Not applicable

There is a much simpler way of doing this. If you have the SN Utils plugin installed, you don't have to muck around with any of that, even if you want to disable the Admin unified menu, which is locked away in a scope we're not meant to be able to edit. 

 

When you load the record, SN Utils will have a blurb advising 'click here' to edit the record. Click the button, disable it, and you're done. 

 

JamesBustard_0-1708655361125.png

 

Version history
Last update:
‎04-29-2023 10:32 AM
Updated by:
Contributors