We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 663a190 commit a06b461Copy full SHA for a06b461
Modules/CIPPCore/Public/Alerts/Get-CIPPAlertSharepointQuota.ps1
@@ -12,7 +12,10 @@ function Get-CIPPAlertSharepointQuota {
12
)
13
Try {
14
$SharePointInfo = Get-SharePointAdminLink -Public $false -tenantFilter $TenantFilter
15
- $sharepointQuota = (New-GraphGetRequest -scope "$($SharePointInfo.AdminUrl)/.default" -tenantid $TenantFilter -uri "$($SharePointInfo.AdminUrl)/_api/StorageQuotas()?api-version=1.3.2").value
+ $extraHeaders = @{
16
+ 'Accept' = 'application/json'
17
+ }
18
+ $sharepointQuota = (New-GraphGetRequest -extraHeaders $extraHeaders -scope "$($SharePointInfo.AdminUrl)/.default" -tenantid $TenantFilter -uri "$($SharePointInfo.AdminUrl)/_api/StorageQuotas()?api-version=1.3.2")
19
} catch {
20
return
21
}
0 commit comments