Dec 18 2018
10:38 AM
- last edited on
Feb 01 2023
09:33 AM
by
TechCommunityAP
Dec 18 2018
10:38 AM
- last edited on
Feb 01 2023
09:33 AM
by
TechCommunityAP
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
Dec 19 2018 12:04 AM
Have you looked into using the subscribedSKU endpoint?
https://docs.microsoft.com/en-us/graph/api/subscribedsku-get?view=graph-rest-1.0
Dec 27 2018 09:24 AM
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