diff --git a/CHANGELOG.md b/CHANGELOG.md index 19c501a868..3c1d7cb3fe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_AADClaimsMappingPolicy/MSFT_AADClaimsMappingPolicy.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_AADClaimsMappingPolicy/MSFT_AADClaimsMappingPolicy.psm1 index 95b5e0af32..e5fb928b35 100644 --- a/Modules/Microsoft365DSC/DSCResources/MSFT_AADClaimsMappingPolicy/MSFT_AADClaimsMappingPolicy.psm1 +++ b/Modules/Microsoft365DSC/DSCResources/MSFT_AADClaimsMappingPolicy/MSFT_AADClaimsMappingPolicy.psm1 @@ -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