Use graph api to get the cost per user

chonky_kittu 41 Reputation points
2022-04-14T09:08:00.503+00:00

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

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,082 questions
{count} votes

Accepted answer
  1. Vasil Michev 98,206 Reputation points MVP
    2022-04-14T09:32:44.173+00:00

    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).

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. CarlZhao-MSFT 38,941 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.

    1 person found this answer helpful.