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.

Modify Profile Menu- Native SN view

Puru2
Tera Contributor

Hello All,
Greetings.

It would be great to share some insights about how do we include any new option (e.g. Navigate to ITSM Portal) OR remove any existing option (e.g. Printer Friendly Version) from the Profile Pop-up box.

 

Puru2_0-1759399441194.png


Looking forward to gather the suggestions.
Thank you.

4 REPLIES 4

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Puru2 

 

https://www.servicenow.com/community/next-experience-forum/customizing-user-menu-of-next-experience-...

 

https://www.servicenow.com/docs/bundle/zurich-platform-user-interface/page/administer/navigation-and...

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Bhuvan
Giga Patron

@Puru2 

 

I do not believe you can achieve this using user profile drop-down menu and would not recommend customizing this even if it is technically possible.

 

Alternatively, you can add menu items as per your requirements and control it using role based access. It is maintained in table sys_polaris_menu_config and you can refer below documentation for more information

 

https://www.servicenow.com/docs/bundle/zurich-platform-user-interface/page/administer/navigation-and...

 

Bhuvan_0-1759400919211.png

If this helped to answer your query, please mark it helpful & accept the solution.

 

Thanks,

Bhuvan

@Puru2 

 

Did you get a chance to review this as I believe the information provided should answer your question.

 

If my response helped to guide you or answer your query, please mark it helpful & accept the solution.

 

Thanks,

Bhuvan

ChallaR
Giga Guru

Hi @Puru2 ,

 

this might be help -

Steps to Customize the Profile Pop-up Menu

 1. Locate the Widget

  1. Go to ServiceNow Studio or Service Portal > Widgets.
  2. Search for the widget named User Profile Menu or similar (depending on your theme).
  3. Open the widget for editing.

2. Modify the Client Script (Controller)

In the Client Script, you'll see an array of menu items like this:

$scope.menuItems = [
  { label: 'Profile', action: 'profile' },
  { label: 'Preferences', action: 'preferences' },
  { label: 'Printer Friendly Version', action: 'print' },
  { label: 'Log out', action: 'logout' }
];

 

To add a new item:

Add a new object with a custom action:

{ label: 'Navigate to ITSM Portal', action: 'navigateITSM' }

 

3. Handle the New Action

In the same widget, add logic to handle the new action:

$scope.performAction = function(action) {
  switch(action) {
    case 'profile':
      // existing logic
      break;
    case 'navigateITSM':
      window.location.href = '/your_itsm_portal_url';
      break;
    // other cases...
  }
};

 

Logout and test it .

 

Thanks,

Rithika.ch