Atlassian Admin APIs - Get users + their licenses

Hello,

We are currently using the Atlassian Admin v1 API (endpoint: https://api.atlassian.com/admin/v1/orgs/{org_id}/users) to fetch user data such as account IDs, product access & last active information from the organization.

We are also using the Atlassian Admin v2 API (endpoint: https://api.atlassian.com/admin/v2/orgs/{org_id}/directories/{directory_id}/users) to fetch additional user data that v1 does not provide, including detailed status, platform roles & the added to org.

What we are missing, however, are the app-specific roles. The current APIs only provide ‘platform-roles,’ which isn’t sufficient, as some users have specific app roles but show empty platform-roles. Additionally, none of the user APIs (including other Cloud Admin APIs and platform APIs) provide data about user licenses.

Are there any available APIs for this or ways to retrieve this?