Have you tried to target the assignedLicenses Property? Please note that it is only returned using $select. This lists users assigned to a particular license and you will need the SKU id. https://learn.microsoft.com/en-us/graph/api/resources/user?view=graph-rest-1.0#properties
Example of sample request:
https://graph.microsoft.com/v1.0/users$select=id,mail,assignedLicenses&$filter=assignedLicenses/any(u:u/skuId eq chjdj-14ab-586c-4d350-a certain SKU id1d46)
Permissions Required Listed here: https://learn.microsoft.com/en-us/graph/api/user-list?view=graph-rest-1.0&tabs=http#permissions You can try this first using Graph Explorer.