Reporting licenses

Occasional Contributor

I am looking for a way for reporting license usage for each customer. I want to use application IDs and secrets so we can automate the retrieval of license data.

We want to know how many licenses there are in a tenant and how many there are assigned/in use.

 

I found an example that uses the MSOnline module: https://www.serverwatch.com/server-tutorials/managing-and-monitoring-office-365-licenses-assigned-to...

 

1) is there a way to use application IDs and secrets to authenticate and retrieve the data with the MSOnline module?

2) Or is there a Graph API alternative so I can use the same mechanism that I use to retrieve alerts?

 

Regards,

Martijn

2 Replies

Have you looked into using the subscribedSKU endpoint?

 

https://docs.microsoft.com/en-us/graph/api/subscribedsku-get?view=graph-rest-1.0

Dear Vasil,

 

Thanks. I managed to get an overview by using "List subscribedSkus" as described here: https://docs.microsoft.com/en-us/graph/api/subscribedsku-list?view=graph-rest-1.0

 

GET https://graph.microsoft.com/v1.0/subscribedSkus