Skip to content

Commit 878bbcd

Browse files
committed
query fixes
1 parent 4ed0d48 commit 878bbcd

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

articles/sentinel/whats-new.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,16 @@ If you've built any custom queries or rules directly referencing these fields, y
6060
IdentityInfo
6161
| where TimeGenerated > ago(14d)
6262
| distinct AccountTenantId, AccountObjectId, AccountUPN, AccountDisplayName
63-
| extend UserPrincipalNameIdentityInfo = AccountUPN
64-
| extend UserNameIdentityInfo = AccountDisplayName
65-
| where isnotempty(AccountDisplayName) and isnotempty(UserPrincipalNameIdentityInfo)
66-
| project AccountTenantId, AccountObjectId, UserPrincipalNameIdentityInfo, UserNameIdentityInfo
63+
| extend UserAccount = AccountUPN
64+
| extend UserName = AccountDisplayName
65+
| where isnotempty(AccountDisplayName) and isnotempty(UserAccount)
66+
| project AccountTenantId, AccountObjectId, UserAccount, UserName
6767
)
6868
on
6969
$left.AadTenantId == $right.AccountTenantId,
7070
$left.AadUserId == $right.AccountObjectId
71-
| extend CompromisedEntity = iff(CompromisedEntity == "N/A" or isempty(CompromisedEntity), UserPrincipalNameIdentityInfo, CompromisedEntity)
72-
| project-away AccountTenantId, AccountObjectId, UserPrincipalNameIdentityInfo
71+
| extend CompromisedEntity = iff(CompromisedEntity == "N/A" or isempty(CompromisedEntity), UserAccount, CompromisedEntity)
72+
| project-away AadTenantId, AadUserId, AccountTenantId, AccountObjectId
7373
```
7474
7575
For information on looking up data to replace enrichment fields removed from the UEBA UserPeerAnalytics table, See [Heads up: Name fields being removed from UEBA UserPeerAnalytics table](#heads-up-name-fields-being-removed-from-ueba-userpeeranalytics-table) for a sample query.

0 commit comments

Comments
 (0)