[GH-ISSUE #1386] [Feature Request]: Monitor for overprovisioned O365 licenses. #770

Closed
opened 2026-03-02 12:45:04 +03:00 by kerem · 5 comments
Owner

Originally created by @IgorMeynin on GitHub (Feb 19, 2023).
Original GitHub issue: https://github.com/KelvinTegelaar/CIPP/issues/1386

Description of the new feature - must be an in-depth explanation of the feature you want, reasoning why, and the added benefits for MSPs as a whole.

Due to the new Microsoft NCE license model, we need a better way to monitor for overprovisioned licenses. It would be helpful to be alerted when the number of O365 consumed licenses is higher than provisioned licenses.

PowerShell commands you would normally use to achieve above request

#Connect to Microsoft Graph.
Connect-Graph -Scopes Organization.Read.All
#Read all assigned licenses for the SKU part that contain O365 in the part name.
$Licenses = Get-MgSubscribedSku | where{$.SkuPartNumber -like "O365"} | select {$.PrepaidUnits.enabled}, ConsumedUnits, skupartnumber
#Identify the total number of consumed and prepaid licenses.
[int]$Consumed = $Licenses.ConsumedUnits
[int]$Prepaid = $Licenses.{$_.PrepaidUnits.enabled}
#Compare the number of consumed and prepaid licenses to identify overprovisioning.
If($Consumed -gt $Prepaid){Write-Host -ForegroundColor Red "Licenses have been overprovisioned. Total Count $Consumed/$Prepaid"}

Originally created by @IgorMeynin on GitHub (Feb 19, 2023). Original GitHub issue: https://github.com/KelvinTegelaar/CIPP/issues/1386 ### Description of the new feature - must be an in-depth explanation of the feature you want, reasoning why, and the added benefits for MSPs as a whole. Due to the new Microsoft NCE license model, we need a better way to monitor for overprovisioned licenses. It would be helpful to be alerted when the number of O365 consumed licenses is higher than provisioned licenses. ### PowerShell commands you would normally use to achieve above request #Connect to Microsoft Graph. Connect-Graph -Scopes Organization.Read.All #Read all assigned licenses for the SKU part that contain O365 in the part name. $Licenses = Get-MgSubscribedSku | where{$_.SkuPartNumber -like "*O365*"} | select {$_.PrepaidUnits.enabled}, ConsumedUnits, skupartnumber #Identify the total number of consumed and prepaid licenses. [int]$Consumed = $Licenses.ConsumedUnits [int]$Prepaid = $Licenses.{$_.PrepaidUnits.enabled} #Compare the number of consumed and prepaid licenses to identify overprovisioning. If($Consumed -gt $Prepaid){Write-Host -ForegroundColor Red "Licenses have been overprovisioned. Total Count $Consumed/$Prepaid"}
kerem 2026-03-02 12:45:04 +03:00
Author
Owner

@github-actions[bot] commented on GitHub (Feb 19, 2023):

Thank you for creating a feature request!
Your current priority is set to "No Priority". No Priority Feature requests automatically get closed in two days if a contributor does not accept the FR.

If you are a sponsor you can request an upgrade of priority. To upgrade the priority type "I would like to upgrade the priority".
If you want this feature to be integrated you can always do this yourself by checking out our contributions guide at https://cipp.app/docs/dev/. Contributors to the CIPP project reserve the right to close feature requests at will.
If you'd like this feature request to be assigned to you, please comment "I would like to work on this please!".

<!-- gh-comment-id:1436118895 --> @github-actions[bot] commented on GitHub (Feb 19, 2023): Thank you for creating a feature request! Your current priority is set to "No Priority". No Priority Feature requests automatically get closed in two days if a contributor does not accept the FR. If you are a sponsor you can request an upgrade of priority. To upgrade the priority type "I would like to upgrade the priority". If you want this feature to be integrated you can always do this yourself by checking out our contributions guide at https://cipp.app/docs/dev/. Contributors to the CIPP project reserve the right to close feature requests at will. If you'd like this feature request to be assigned to you, please comment "I would like to work on this please!".
Author
Owner

@IgorMeynin commented on GitHub (Feb 19, 2023):

I would like to upgrade the priority

<!-- gh-comment-id:1436119189 --> @IgorMeynin commented on GitHub (Feb 19, 2023): I would like to upgrade the priority
Author
Owner

@BNWEIN commented on GitHub (Feb 23, 2023):

This already exists as an alert in the alerts wizard in version 3.0

image

<!-- gh-comment-id:1441973961 --> @BNWEIN commented on GitHub (Feb 23, 2023): This already exists as an alert in the alerts wizard in version 3.0 ![image](https://user-images.githubusercontent.com/28929905/220950991-dd11a077-d362-4cc9-a691-80bd5c649575.png)
Author
Owner

@BNWEIN commented on GitHub (Feb 23, 2023):

Re-Reading your Feature Request, it might be the alert above the one i have circled that you want, but its there.

<!-- gh-comment-id:1441975934 --> @BNWEIN commented on GitHub (Feb 23, 2023): Re-Reading your Feature Request, it might be the alert above the one i have circled that you want, but its there.
Author
Owner

@IgorMeynin commented on GitHub (Feb 24, 2023):

Thank you for all the comments. I missed the existing alert. All good now. :)

<!-- gh-comment-id:1442625153 --> @IgorMeynin commented on GitHub (Feb 24, 2023): Thank you for all the comments. I missed the existing alert. All good now. :)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/CIPP#770
No description provided.