question

chonky-kittu-8540 avatar image
0 Votes"
chonky-kittu-8540 asked saldana-msft edited

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://docs.microsoft.com/en-us/graph/api/subscribedsku-list?view=graph-rest-1.0&tabs=http
https://docs.microsoft.com/en-us/graph/api/user-list-licensedetails?view=graph-rest-1.0&tabs=http
https://docs.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-usersmicrosoft-graph-directory-mgmt
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

michev avatar image
1 Vote"
michev answered AnnaOvchinnikova-3655 commented

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

· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Are there any other api's that will return this data for office 365?

0 Votes 0 ·
michev avatar image michev chonky-kittu-8540 ·

Not that I know of, sorry.

0 Votes 0 ·

Hi @michev
Please, give a suggest, what's api should be used to get total available licenses within the tenant
Thanks

SI

0 Votes 0 ·
CarlZhao-MSFT avatar image
1 Vote"
CarlZhao-MSFT answered chonky-kittu-8540 commented

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Are there any other api's that will return this data for office 365?

0 Votes 0 ·