Skip to content

Updated IdentityInfo distinct case sensitive AccountUpn (from UPN)#13740

Merged
rahul0216 merged 1 commit into
Azure:masterfrom
AntoPorter:patch-1
Mar 6, 2026
Merged

Updated IdentityInfo distinct case sensitive AccountUpn (from UPN)#13740
rahul0216 merged 1 commit into
Azure:masterfrom
AntoPorter:patch-1

Conversation

@AntoPorter
Copy link
Copy Markdown
Contributor

Change(s):

  • Updated IdentityInfo distinct case sensitive AccountUpn (from UPN)

Reason for Change(s):

  • Query fails on run.

Version Updated:

  • Update to version 1. No changes have been made since creation.

Testing Completed:

  • Successfully runs after updating to reflect change

Updated IdentityInfo distinct case sensitive AccountUpn (from UPN)
@AntoPorter AntoPorter requested review from a team as code owners March 4, 2026 02:35
@v-shukore v-shukore self-assigned this Mar 5, 2026
@v-shukore v-shukore added Hunting Hunting specialty review needed Standalone Standalone Content labels Mar 5, 2026
@v-shukore
Copy link
Copy Markdown
Contributor

Hi @AntoPorter, please resolve kql validation failure. Thanks!
image

@AntoPorter
Copy link
Copy Markdown
Contributor Author

@v-shukore

So in the schema used by the repo’s validator, IdentityInfo does not contain AccountUpn, it contains AccountUPN (uppercase UPN). This matches the Log Analytics / Sentinel table reference where the column is documented as AccountUPN. At the same time, in Defender XDR Advanced Hunting (unified IdentityInfo schema) the column is documented as AccountUpn (lowercase pn).

So the validator is doing its job: in this repo context, AccountUpn is “unknown”, therefore the PR fails tests.

The issue is that this query is only available to be ran within Defender XDR's advanced hunting, as the table only exists within Defender, and does not reflect within Sentinel/Log Analytics Workspace. The check is then failing against the Log Analytics Query.

This mismatch is a known pain point because KQL is case-sensitive, and the IdentityInfo schema differs depending on whether you’re querying Sentinel Log Analytics versus Defender portal Advanced Hunting/unified schema.

Successful query with lowercase pn via Advanced Hunting
Screenshot 2026-03-05 142523

Failed query with uppercase PN via Advanced Hunting
Screenshot 2026-03-05 142636

@v-shukore
Copy link
Copy Markdown
Contributor

Hi @AntoPorter, got it. thanks!

@AntoPorter
Copy link
Copy Markdown
Contributor Author

AntoPorter commented Mar 6, 2026

What are the next steps for this? I am unable to merge due to the failed check.

@rahul0216 rahul0216 merged commit cb3ebf4 into Azure:master Mar 6, 2026
22 of 23 checks passed
@AntoPorter AntoPorter deleted the patch-1 branch March 6, 2026 05:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Hunting Hunting specialty review needed Standalone Standalone Content

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants