Skip to content

Commit

Permalink
Merge pull request #5506 from ricmestre/fix5505
Browse files Browse the repository at this point in the history
AADClaimsMappingPolicy: Fix policy retrieval
  • Loading branch information
ykuijs authored Dec 4, 2024
2 parents bca2a0e + c74177c commit 336f754
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
* Added support for #microsoft.graph.accessReviewInactiveUsersQueryScope in odatatype.
* AADActivityBasedTimeoutPolicy
* Added support for AccessTokens.
* AADClaimsMappingPolicy
* Fixed policy retrieval
FIXES [#5505](https://github.com/microsoft/Microsoft365DSC/issues/5505)
* AADIdentityAPIConnector
* Changed the export logic to export passwords as credential objects instead of string.
* AADRoleManagementPolicyRule
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,7 @@ function Get-TargetResource
{
$getValue = Get-MgBetaPolicyClaimMappingPolicy `
-Filter "DisplayName eq '$DisplayName'" `
-ErrorAction SilentlyContinue | Where-Object `
-FilterScript {
$_.AdditionalProperties.'@odata.type' -eq '#microsoft.graph.ClaimsMappingPolicy'
}
-ErrorAction SilentlyContinue
}
}
#endregion
Expand Down

0 comments on commit 336f754

Please sign in to comment.