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

cancel
Showing results for 
Search instead for 
Did you mean: 
200million
Active Member

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

Jump to solution

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

alf.png

Thanks in advance

1 Solution

Accepted Solutions
sanjaybandhniya
Intermediate

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

Jump to solution

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");

 

View solution in original post

2 Replies
sanjaybandhniya
Intermediate

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

Jump to solution

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");

 

200million
Active Member

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

Jump to solution

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,