com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_link3' is unknown.

Consume user information within a widget

There are scenarios that require a widget to access the user information of the user who is currently logged in. For this purpose an API has been introduced to the widget developer via the base widget component.

To access user information, follow the steps below:

This API currently exposes only the username of the current user.

Before you begin:

A widget that can be deployed in the Dashboard Portal must already exist.


  1. Ensure that your widget is extended from the base widget provided by the dashboard portal. For more information, see Extending from base widget component.
  2. Call the following method to get the user information.

    const userInfo = super.getCurrentUser();

This feature is demonstrated by the sample widget named UserInfo that is shipped with WSO2 SP by default. You can view the source code of this widget here.

com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_links2' is unknown.