Fetching license count of product

Hey everyone ,
So I’ve been trying to find any endpoint that can get users that are being counted towards license for a product like jira etc.

Currently this can be achieved using applicationrole , but you would require user’s email and API token to make those requests . Further we can derive that number by getting groups that have access to a product → get users from that product , but then again you would again require applicarionrole API to get information related to groups with product access . Is there any other method through which this can be achieved