How to retrieve installed apps basic license details

I am working on User Scripted macro creation in Confluence to gather information about installed apps.
The intention is to have it visible to users with some basic information like Marketplace details and License status.

I was able to gather most of the details using some PlugIn classes:

import com.atlassian.plugin.PluginAccessor
import com.atlassian.plugin.metadata.PluginMetadataManager
import com.atlassian.plugin.PluginState

Unfortunately I am not able to obtain details about License status for App which is basically available over UPM Rest API but I don’t want to handle REST calls.

Anyone could help on this?

Regards,
Areg

1 Like

Getting licensing information about 3rd party plugins is likely viewed as privacy issue and is probably not possible.
In more technical terms, each plugin has it’s own instance of PluginLicenseManager you probably can’t get a reference to.

But I don’t want to do that.
How Jira or Confluence show when license is going to expire and validity of it using Manage App page?
It is calling some API.
REST can show that data so that mean there is an internal API to retrieve that basic information.