Skip to content
Last updated

userMenu

Products:RedocRedocRevelRevelReefReefRealmRealm
Plans:ProEnterpriseEnterprise+

Set the visibility of the user menu in your project. The user menu is displayed in the far right side of the navbar. Users can click the user avatar to display a dropdown menu. The menu contains the avatar, the user's email address, links to pages you can configure, and a log out option.

Screenshot of the user menu with the dropdown displayed
Required configuration

You must also have sso and either rbac or requiresLogin configured for the userMenu to display.

Options

OptionTypeDescription
hidebooleanSpecifies if the User menu should be hidden. Only required if you do not add any other options to the configuration. Default: false.
hideLoginButtonbooleanSpecifies if the login button that displays in the far right side of the navbar should be hidden. Default: false.
itemsItemList of links in the User menu dropdown.

Item object

OptionTypeDescription
labelstringLink text displayed for the item.
labelTranslationKeystringLink text key for the item used for localization.
externalbooleanOpen link in new browser tab. Default: false.

Examples

userMenu:
  hide: false
  hideLoginButton: true
  items:
    - href: /my-settings/
      label: Settings

Resources

  • Control site access - Configure role-based access control to manage user permissions and access levels for user menu functionality
  • Configure project SSO - Set up single sign-on integration to enable seamless user authentication and menu personalization
  • Role-based access control - Understand how role-based access control works in Redocly products for comprehensive user menu and permission management
  • Navbar configuration - Add additional links to the navbar and configure navbar appearance to complement the user menu
  • SSO configuration - Configure SSO authentication required for user menu display and functionality
  • RBAC configuration - Set up role-based access control as an alternative to requiresLogin for user menu access management
  • Requires login configuration - Configure login requirements as an alternative to RBAC for enabling user menu functionality