Skip to content

Commit

Permalink
correction on audit.sharepoint
Browse files Browse the repository at this point in the history
  • Loading branch information
KelvinTegelaar committed Apr 5, 2024
1 parent bfc5dda commit 1ccd4e1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function Invoke-PublicWebhooks {
Write-Host "Our operations: $Operations"
Write-Host "Logs to download: $LogsToDownload"
if ($ReceivedItem.ContentType -in $LogsToDownload -or 'AnyLog' -in $LogsToDownload) {
if ($ReceivedItem.ContentType -eq 'SharePoint') { continue }
if ($ReceivedItem.ContentType -eq 'Audit.SharePoint') { continue }
$Data = New-GraphPostRequest -type GET -uri "https://manage.office.com/api/v1.0/$($ReceivedItem.tenantId)/activity/feed/audit/$($ReceivedItem.contentid)" -tenantid $TenantFilter -scope 'https://manage.office.com/.default'
} else {
Write-Host "No data to download for $($ReceivedItem.ContentType)"
Expand Down

0 comments on commit 1ccd4e1

Please sign in to comment.