LokiDil
LokiDil

Reputation: 207

MS CRM Get Total License available Programmatically

Using C sharp code I need to read and prepare a report(Licenses) like Total Available and Used,Just like the office 365 portal's Dashboard(Billing->Licenses).

I just used the Get-MsolUser command to retrieved the licensed user to calculated the Used Licenses. In a similar manner I need to fetch the result of Total Available Licenses.

Is there any possible way to retrieve it?

Hoping someone might have tried the same.

Upvotes: 0

Views: 154

Answers (1)

LokiDil
LokiDil

Reputation: 207

I got the result by querying the command Get-MsolAccountSku to get the ActiveUnits and ConsumedUnits

Upvotes: 1

Related Questions