Skip to content

Commit 6fafd4d

Browse files
committed
Update Get-CIPPAlertSmtpAuthSuccess.ps1
Fix Get-CIPPAlertSmtpAuthSuccess by changing filter to 'Authenticated SMTP' instead of 'SMTP'
1 parent ba1a8cc commit 6fafd4d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function Get-CIPPAlertSmtpAuthSuccess {
1313

1414
try {
1515
# Graph API endpoint for sign-ins
16-
$uri = "https://graph.microsoft.com/v1.0/auditLogs/signIns?`$filter=clientAppUsed eq 'SMTP' and status/errorCode eq 0"
16+
$uri = "https://graph.microsoft.com/v1.0/auditLogs/signIns?`$filter=clientAppUsed eq 'Authenticated SMTP' and status/errorCode eq 0"
1717

1818
# Call Graph API for the given tenant
1919
$SignIns = New-GraphGetRequest -uri $uri -tenantid $TenantFilter

0 commit comments

Comments
 (0)