Skip to content

Commit a06b461

Browse files
final fix for sharepoint stuff
1 parent 663a190 commit a06b461

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Modules/CIPPCore/Public/Alerts/Get-CIPPAlertSharepointQuota.ps1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ function Get-CIPPAlertSharepointQuota {
1212
)
1313
Try {
1414
$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
15+
$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")
1619
} catch {
1720
return
1821
}

0 commit comments

Comments
 (0)