Hiding menu items for SP header in Service Portal

zct
Kilo Explorer

Hi All,

I have a requirement to hide some menu items in Service Portal to some portal users who does not have access.

I was thinking of controlling by role/group.

E.g. User A login to Portal and is not authorized to see Dashboard menu item, thus he can only see Homepage

User B login to Portal and is authorized to see Dashboard menu item, thus he can see both Dashboard and Homepage

find_real_file.png

Does anyone has a sample script to do this?

Thank you in advance for your help.

1 ACCEPTED SOLUTION

Alikutty A
Tera Sage

zct



You should tag a condition to your menu item for dashboard. Open the menu item and add this condition.



gs.hasRole('itil')



find_real_file.png



This will hide the menu items for users who don't have itil role or from end users. Let me know if this worked for you



Thank You


Please Hit Like, Helpful or Correct depending on the impact of response


View solution in original post

6 REPLIES 6

Did you check my comments in your actual post?

Change the Type to Page and specify your page name directly instead of URL.

 I have already tried that but unfortunately it didn't worked