How can I hide the Menu's in the Banner As per Role Based?

vigneshvr79
Kilo Explorer

vigneshvr79_0-1793720466627.png

I got a requirement ,the client is asking like history and admin menu should be hidden and it should visible only to the particular Role's. Is that achievable?

5 REPLIES 5

Tanushree Maiti
Tera Patron

Hi @vigneshvr79 

 

Set  Hidden role and visible Role for Admin and History menu under Unified Navigation Menus

TanushreeMaiti_0-1793728986184.png

 

 

Refer:Configure custom menus for Unified Navigation 

 

Before you begin

Role required: admin

Procedure

  1. Navigate to All > Unified Navigation Menus.
  2. Select New.
  3. On the form, fill in the fields.
    Unified Navigation Menu formField Description
    NameName of your Unified Navigation Menu.
    Menu ActiveMenu that is active when checked.
    OrderOrder that the menu appears in place of other menus.
    ApplicationScope of the menu. Global is the default.
    Hidden RolesRoles that this menu is hidden from.
    Visible RolesRoles that this menu is visible to.
Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti

I have created a test user and role then add it on the hide visible role on Unified Navigation Menus as well but still the menu is appearing on the test user screen

 

Hi @vigneshvr79 ,

 

It seems , you are testing with an admin user. If you check  Unified navigation menu, OOB , for Admin menu , visible role has been set to admin.

Test with non-admin user.

 

TanushreeMaiti_1-1793761318746.png

 

Steps to replicate in PDI: 

 

1. Created a test role  ( test_role)

2. Assign it  to a non-admin user (alfonso.griglen). also added ITIL role ,so that native UI is visible to the user.

3. Check the  Before screen shot ( Before  updating  Unified Navigation menu i.e for History menu ->Hidden role : test_role))

4. Now update  Unified Navigation menu i.e for History menu ->Hidden role : test_role

TanushreeMaiti_4-1793761706920.png

5. Check the result.

 

 

Before ,

TanushreeMaiti_0-1793761081657.png

After :

See History  Menu is not showing.

 

TanushreeMaiti_3-1793761683133.png

 

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti

Aditya_hublikar
Giga Sage

Hello @vigneshvr79 ,

 

This is my test user impersonation , i have added admin role for history menu item so its hidden from that test user who dont have admin role .

Aditya_hublikar_0-1793766826417.png

Aditya_hublikar_1-1793766869253.png

 

 

If this helps you then mark it as helpful and accept as solution .

Regards,

Aditya