Inside Activate
Web Portal
NavBar Menu
6 min
the application bar now supports an optional user menu that appears when clicking the user avatar previously, selecting the avatar opened the user properties page directly this enhancement allows environments to present richer navigation options, profile information, or conditional actions based on authentication method enabling the user menu to enable the app bar user menu, two settings must be enabled 1\ feature flag pr40023 addingconfigurablenavbarusermenu this product feature flag must be enabled before any configuration settings will take effect if this flag is not enabled, the user menu will not appear regardless of configuration 2\ web configuration setting located in resources > configuration > web enablenavbarusermenu type boolean description when set to true, clicking the avatar opens a drop down menu when set to false, the avatar continues to open the user properties page directly this feature is optional and disabled by default to preserve legacy behaviour during upgrades configuring user menu items menu items are defined in resources > configuration > web > navbarusermenuitems this parameter stores a json structure that determines which items appear in the menu their labels, icons, and navigation targets dynamic behaviour based on expression rules example configuration { "menuitems" \[ { "type" "link", "label" "=//currentuser/name", "labeldescription" "=//currentuser/title", "path" "/users/me", "icon" "=//currentuser/imageurl", "enabled" "true" }, { "type" "link", "label" "logout", "path" "/webapi/users/logout", "icon" "logout md", "enabled" "=/canlogout" } ] } default menu item behaviour user profile item displays the current user’s name, title, and avatar, and links to /users/me expression bindings (e g =//currentuser/name) allow dynamic rendering based on the signed in user logout item visibility is controlled by the =/canlogout expression this ensures the option only appears where logout is appropriate in sso environments, users may not log in or out directly when canlogout evaluates to false, the logout item is automatically hidden customising menu items additional menu items can be added by extending the menuitems array supported configuration fields include true 330,331left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type expressions can reference user attributes, permissions, or system values, enabling contextual menu behaviour