There's nothing in Graph that will give you the cost of specific license. You can of course get the list of licenses assigned for the user, as well as total available within the tenant. But you'll have to correlate the price information with some external source. Keep in mind that license price can vary greatly depending on how the license was procured (i.e. bought from the portal vs having EA vs bought from CSP, etc).
Use graph api to get the cost per user

I am trying to use Graph API to get the cost per user subscription, based on the Office365 applications/services the given user is assigned to.
Are there any rest endpoints that give me such details? I have tried the following endpoints/documentation
https://learn.microsoft.com/en-us/graph/api/subscribedsku-list?view=graph-rest-1.0&tabs=http
https://learn.microsoft.com/en-us/graph/api/user-list-licensedetails?view=graph-rest-1.0&tabs=http
https://learn.microsoft.com/en-us/graph/api/user-list?view=graph-rest-1.0&tabs=http
I have also referred to
https://stackoverflow.com/questions/53548640/what-api-to-use-when-getting-microsoft-365-subscription-price-i-e-office-365-bu which sums up my question, but the reply to the post is old and I was wondering if there has been any new development in graph rest endpoint, that exposes the cost of user subscription (per year or per month). If not, are there any other endpoints that I can use?
Thanks,
Austin
1 additional answer
Sort by: Most helpful
-
CarlZhao-MSFT 23,031 Reputation points
2022-04-14T10:11:46.043+00:00 Hi @austinA-8850
There is currently no graph api endpoint for getting user subscription cost, I suggest you submit user voice to add support for this feature.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.