How to disable "home page" setting menu item in user profile menu?

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Member II

How to disable "home page" setting menu item in user profile menu?

Can you please guide me on how to disable below 2 options from the normal users' profile menu?

alf.png

Thanks in advance

2 Replies
Highlighted
Senior Member II

Re: How to disable "home page" setting menu item in user profile menu?

Hi,

You can override share-header.get.js by using extension point and remove both menu from array like below.

widgetUtils.deleteObjectFromArray(model.jsonModel, "id", "HEADER_USER_MENU_SET_DASHBOARD_AS_HOME");
widgetUtils.deleteObjectFromArray(model.jsonModel, "id", "HEADER_USER_MENU_HOME_PAGE_GROUP");

 

Thanks & Regards,
Sanjay
Highlighted
Member II

Re: How to disable "home page" setting menu item in user profile menu?

Hi Sanjay,

That's great, I did that for main menu items(such as tasks, shared files, etc) but did not know it could be done for these menu items also.

Thanks a lot. Will try this out and update here

best regards,