Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,677 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
People,
I wonder what's the command to get the remaining available License with Graph API ?
Get-MgSubscribedSku -All | Where SkuPartNumber -eq 'SPE_E5' | fl
The result only the current usage of the license total, not the remaining available license.
Thanks in advance.
You'll want to Expand the property PrepaidUnits, get the value of enabled and do the math "Enabled - Current Usage"