Reporting licenses

%3CLINGO-SUB%20id%3D%22lingo-sub-303561%22%20slang%3D%22en-US%22%3EReporting%20licenses%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-303561%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20looking%20for%20a%20way%20for%20reporting%20license%20usage%20for%20each%20customer.%20I%20want%20to%20use%20application%20IDs%20and%20secrets%20so%20we%20can%20automate%20the%20retrieval%20of%20license%20data.%3C%2FP%3E%3CP%3EWe%20want%20to%20know%20how%20many%20licenses%20there%20are%20in%20a%20tenant%20and%20how%20many%20there%20are%20assigned%2Fin%20use.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20found%20an%20example%20that%20uses%20the%20MSOnline%20module%3A%20%3CA%20href%3D%22https%3A%2F%2Fwww.serverwatch.com%2Fserver-tutorials%2Fmanaging-and-monitoring-office-365-licenses-assigned-to-office-365-users.html%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.serverwatch.com%2Fserver-tutorials%2Fmanaging-and-monitoring-office-365-licenses-assigned-to-office-365-users.html%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E1)%20is%20there%20a%20way%20to%20use%20application%20IDs%20and%20secrets%20to%20authenticate%20and%20retrieve%20the%20data%20with%20the%20MSOnline%20module%3F%3C%2FP%3E%3CP%3E2)%20Or%20is%20there%20a%20Graph%20API%20alternative%20so%20I%20can%20use%20the%20same%20mechanism%20that%20I%20use%20to%20retrieve%20alerts%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%2C%3C%2FP%3E%3CP%3EMartijn%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-303561%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAutomated%20license%20report%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-307093%22%20slang%3D%22en-US%22%3ERe%3A%20Reporting%20licenses%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-307093%22%20slang%3D%22en-US%22%3E%3CP%3EDear%20Vasil%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks.%20I%20managed%20to%20get%20an%20overview%20by%20using%20%22List%20subscribedSkus%22%20as%20described%20here%3A%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fsubscribedsku-list%3Fview%3Dgraph-rest-1.0%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fsubscribedsku-list%3Fview%3Dgraph-rest-1.0%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%3E%3CSPAN%20class%3D%22hljs-attribute%22%3EGET%20https%3A%2F%2Fgraph.microsoft.com%2Fv1.0%2FsubscribedSkus%3C%2FSPAN%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-303906%22%20slang%3D%22en-US%22%3ERe%3A%20Reporting%20licenses%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-303906%22%20slang%3D%22en-US%22%3E%3CP%3EHave%20you%20looked%20into%20using%20the%20subscribedSKU%20endpoint%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fsubscribedsku-get%3Fview%3Dgraph-rest-1.0%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fsubscribedsku-get%3Fview%3Dgraph-rest-1.0%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
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
Highlighted

Have you looked into using the subscribedSKU endpoint?

 

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

Highlighted

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