Skip to content

Commit

Permalink
Merge pull request #8754 from eroll-chorus/user_priv_role
Browse files Browse the repository at this point in the history
Update TargetResource logic for UserAssignedPrivilegedRole
  • Loading branch information
v-atulyadav authored Aug 18, 2023
2 parents e89a48b + 9d34cc2 commit 4f122ae
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@ query: |
| where ActivityDisplayName has_any ("Add eligible member to role", "Add member to role")
| mv-apply TargetResource = TargetResources on
(
where TargetResource.type =~ "User"
| extend Target = tostring(TargetResource.userPrincipalName)
| extend Target = iff(TargetResources.type == "ServicePrincipal", tostring(TargetResources.displayName), Target),
where TargetResource.type in~ ("User", "ServicePrincipal")
| extend Target = iff(TargetResource.type =~ "ServicePrincipal", tostring(TargetResource.displayName), tostring(TargetResource.userPrincipalName)),
props = TargetResource.modifiedProperties
)
| mv-apply Property = props on
Expand Down Expand Up @@ -56,5 +55,5 @@ entityMappings:
columnName: InitiatorName
- identifier: UPNSuffix
columnName: InitiatorUPNSuffix
version: 1.0.5
version: 1.0.6
kind: Scheduled

0 comments on commit 4f122ae

Please sign in to comment.