mirror of
https://github.com/KelvinTegelaar/CIPP.git
synced 2026-04-25 08:16:01 +03:00
[GH-ISSUE #1121] [Feature Request]: Notification for Sharepoint storage when is getting to it's limit #602
Labels
No labels
API
Feature
NotABug
NotABug
Planned
Sponsor Priority
Sponsor Priority
bug
documentation
duplicate
enhancement
needs more info
no-activity
no-priority
not-assigned
pull-request
react-conversion
react-conversion
roadmap
security
stale
unconfirmed-by-user
unconfirmed-by-user
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/CIPP#602
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
@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!".
@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.