Get confluence licensed users count through rest API with a connect app

Hi,
I’m working on an atlassian connect App for Jira& confluence. There i’m in need of getting paid user count/pricing licence information.

In the mentioned atlassian api documentation /rest/api/3/users , it was not applicable for the Connect apps

Is there a way to make it work for the Connect apps.

Thanks,
Kavin

Hi, Is there any update to this issue or it’s not possible to get licence info using atlassian connect apps.

Hi @KavinKumar, @kavinkumarc,

I know of these end points via REST API. Are these not accessible from the connect app?

Jira, JSM user count and remaining seats:
/rest/api/3/applicationrole

Confluence user count and remaining seats:
/wiki/rest/license/1.0/license/userCount
/wiki/rest/license/1.0/license/remainingSeats
/wiki/rest/license/1.0/license/maxUsers

The full URL being: https://your-domain.atlassian.net/wiki/rest/license/1.0/license/userCount

Hope that helps!
Kind regards,
Abraham