Fix modifiedProperties displayName in OAuthConsentToHighRiskPermissionScope#14334
Merged
v-atulyadav merged 2 commits intoMay 27, 2026
Merged
Conversation
…nScope ConsentContext.Permissions is not a valid displayName in Azure AuditLogs modifiedProperties for consent events. The correct value is ConsentAction.Permissions, consistent with OAuthConsentToHighRiskPermission.yaml (line 62) and ConsentToApplicationDiscovery.yaml in the same repo. The previous value caused the query to return zero results.
Contributor
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Fixes a broken filter in the Entra ID consent audit hunting query so it correctly matches the modifiedProperties.displayName value and returns expected results.
Changes:
- Update
TargetResources[0].modifiedProperties.displayNamefilter fromConsentContext.PermissionstoConsentAction.Permissions
Collaborator
|
Hi @descambiado, |
…-scope-property-name
Contributor
Author
|
Pushed a merge of latest master to rerun the validation. No Copilot inline comments were open on this one, so nothing else to change here. |
v-atulyadav
approved these changes
May 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
OAuthConsentToHighRiskPermissionScope.yaml(merged in #14276) has a one-line bug that causes the query to return zero results:ConsentContext.Permissionsis not a validdisplayNamevalue inTargetResources[0].modifiedPropertiesfor Entra ID consent audit events. The correct value isConsentAction.Permissions.Evidence from the same repo:
OAuthConsentToHighRiskPermission.yamlline 62:| where PropertyName =~ "ConsentAction.Permissions"ConsentToApplicationDiscovery.yaml:extend perms = tostring(parse_json(tostring(PropertyUpdate.["ConsentAction.Permissions"]))[0])Files changed
Hunting Queries/MultipleDataSources/OAuthConsentToHighRiskPermissionScope.yaml— 1 line changed