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

Sharing Applications and Subscriptions

The API Manager provides the facility to users of a specific logical group such as an organization to view each others' applications and subscriptions.  

By default, the API Manager considers the organization name that you give at the time you sign up to the API Store as the group ID. It extracts the claim http://wso2.org/claims/organization  of a user and uses the value specified in it as the group ID. This way, all users who specify the same organization name belong to the same group and therefore, can view each others' subscriptions and applications. The API Manager also provides flexibility to change this default authentication implementation.

The steps below explain how to share applications and subscriptions.

  1. Uncomment the <GroupingExtractor> element in the < APIM_HOME>/repository/conf/api-manager.xml file.
     <GroupingExtractor>org.wso2.carbon.apimgt.impl.DefaultGroupIDExtractorImpl</GroupingExtractor>

    Tip: This default extractor doesn't work with SAML SSO. You need to write a custom implementation using the WSO2ISGroupIdExtractor.java class as an example.

  2. Start the API Manager and sign up to the API Store as two different users (User1 and User2) with the same organization name. For example,

  3. Log in as User1, create a new application (e.g., TestApp1) and subscribe to an API using the new application.
  4. Log out of the API Store and log back in as User2.
  5. Go to the Applications page and note that the previous user's subscription is listed under Subscriptions for the application that the previous user created (e.g., TestApp1).

    Note that the Registered Users for Application statistics takes the number of users shared each of the Application. And for the users to be counted in the statistics in this graph, they should have to generate access tokens using Password Grant type.

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