I am attempting to get the number of licenses that I have on my Office 365 account.
When I log in to the Office 365 portal and view Billing > Licenses, I'm given a table with the name of the subscription and the number of valid, expired, and assigned licenses for that subscription.
Is there a way to pull this same information from any of the Office 365 APIs or reporting services?