[GH-ISSUE #1121] [Feature Request]: Notification for Sharepoint storage when is getting to it's limit #602

Closed
opened 2026-03-02 12:43:38 +03:00 by kerem · 2 comments
Owner

Originally created by @JeroenB-Tredion on GitHub (Sep 13, 2022).
Original GitHub issue: https://github.com/KelvinTegelaar/CIPP/issues/1121

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.

In sharepoint you can only have a certain amount of data until it gets to it's limit. For example your max is 1.2 TB we would like a notification for 10% and one for 5% until it reaches this 1.2 TB limit.

PowerShell commands you would normally use to achieve above request

$graphurl = "https://graph.microsoft.com/v1.0"
$OnedriveUserStorage = "/reports/getOneDriveUsageStorage(period='D7')"
$SharepointStorage = "/reports/getSharePointSiteUsageStorage(period='D7')"
$ExchangeUserStorage = "/reports/getMailboxUsageStorage(period='D7')"

if(Get-Module Microsoft.Graph.Reports -ListAvailable){Import-Module Microsoft.Graph.Reports}
else{Install-Module Microsoft.Graph.Reports -Scope CurrentUser;Import-Module Microsoft.Graph.Reports}
Connect-MgGraph -Scopes "Reports.Read.All"

Invoke-MgGraphRequest -Uri $($graphurl+$OnedriveUserStorage) -InferOutputFileName
Invoke-MgGraphRequest -Uri $($graphurl+$SharepointStorage) -InferOutputFileName
Invoke-MgGraphRequest -Uri $($graphurl+$ExchangeUserStorage) -InferOutputFileName

foreach($csv in get-childitem -filter *.csv){
$csvimport = import-csv $csv.name
$TotalStorage = $csvimport.'Storage Used (Byte)'[0]
Write-Host $csv.Name
[Math]::Round(([int64]$TotalStorage/ 1Gb),2)
Remove-Item $csv.FullName
}

Disconnect-MgGraph
Pause

Originally created by @JeroenB-Tredion on GitHub (Sep 13, 2022). Original GitHub issue: https://github.com/KelvinTegelaar/CIPP/issues/1121 ### 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. In sharepoint you can only have a certain amount of data until it gets to it's limit. For example your max is 1.2 TB we would like a notification for 10% and one for 5% until it reaches this 1.2 TB limit. ### PowerShell commands you would normally use to achieve above request $graphurl = "https://graph.microsoft.com/v1.0" $OnedriveUserStorage = "/reports/getOneDriveUsageStorage(period='D7')" $SharepointStorage = "/reports/getSharePointSiteUsageStorage(period='D7')" $ExchangeUserStorage = "/reports/getMailboxUsageStorage(period='D7')" if(Get-Module Microsoft.Graph.Reports -ListAvailable){Import-Module Microsoft.Graph.Reports} else{Install-Module Microsoft.Graph.Reports -Scope CurrentUser;Import-Module Microsoft.Graph.Reports} Connect-MgGraph -Scopes "Reports.Read.All" Invoke-MgGraphRequest -Uri $($graphurl+$OnedriveUserStorage) -InferOutputFileName Invoke-MgGraphRequest -Uri $($graphurl+$SharepointStorage) -InferOutputFileName Invoke-MgGraphRequest -Uri $($graphurl+$ExchangeUserStorage) -InferOutputFileName foreach($csv in get-childitem -filter *.csv){ $csvimport = import-csv $csv.name $TotalStorage = $csvimport.'Storage Used (Byte)'[0] Write-Host $csv.Name [Math]::Round(([int64]$TotalStorage/ 1Gb),2) Remove-Item $csv.FullName } Disconnect-MgGraph Pause
Author
Owner

@github-actions[bot] commented on GitHub (Sep 13, 2022):

Thank you for creating a feature request! feature requests are prioritized by our direct contributors. Your current priority is set to "No Priority". If you are a sponsor you can request an upgrade of priority, If you want this feature to be integrated you can always do this yourself by checking out our contributions guide at https://kelvintegelaar.github.io/CIPP/GettingStarted/Contributions.html. Contributors to the CIPP project reserve the right to close feature requests at will.

If your feature request is not picked up in 2 week by a contributor it will be closed.

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:1245246321 --> @github-actions[bot] commented on GitHub (Sep 13, 2022): Thank you for creating a feature request! feature requests are prioritized by our direct contributors. Your current priority is set to "No Priority". If you are a sponsor you can request an upgrade of priority, If you want this feature to be integrated you can always do this yourself by checking out our contributions guide at https://kelvintegelaar.github.io/CIPP/GettingStarted/Contributions.html. Contributors to the CIPP project reserve the right to close feature requests at will. If your feature request is not picked up in 2 week by a contributor it will be closed. If you'd like this feature request to be assigned to you, please comment "I would like to work on this please!".
Author
Owner

@github-actions[bot] commented on GitHub (Sep 25, 2022):

This issue is stale because it has been open 10 days with no activity. We will close this issue soon. If you want this feature implemented you can contribute it. See: https://cipp.app/GettingStarted/Contributions/ . Please notify the team if you are working on this yourself.

<!-- gh-comment-id:1257102340 --> @github-actions[bot] commented on GitHub (Sep 25, 2022): This issue is stale because it has been open 10 days with no activity. We will close this issue soon. If you want this feature implemented you can contribute it. See: https://cipp.app/GettingStarted/Contributions/ . Please notify the team if you are working on this yourself.
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#602
No description provided.