Skip to content

Commit

Permalink
double username
Browse files Browse the repository at this point in the history
logging event should show domain\user
  • Loading branch information
AdhocAdam committed Oct 17, 2020
1 parent 2f7174b commit d7955ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion smletsExchangeConnector.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2214,7 +2214,7 @@ function Get-SCSMUserByEmailAddress ($EmailAddress)
if ($userSMTPNotification
$user = get-scsmobject -id (Get-SCSMRelationshipObject -ByTarget $userSMTPNotification @scsmMGMTParams).sourceObject.id @scsmMGMTParams
if ($loggingLevel -ge 4){New-SMEXCOEvent -Source "Get-SCSMUserByEmailAddress" -EventId 0 -LogMessage "Address: $EmailAddress was matched to SCSM User: $($user.UserName)\$($user.UserName)" -Severity "Information"}
if ($loggingLevel -ge 4){New-SMEXCOEvent -Source "Get-SCSMUserByEmailAddress" -EventId 0 -LogMessage "Address: $EmailAddress was matched to SCSM User: $($user.Domain)\$($user.UserName)" -Severity "Information"}
return $user
}
else
Expand Down

0 comments on commit d7955ce

Please sign in to comment.