diff --git a/CHANGELOG.md b/CHANGELOG.md index c726c79da1..89b9afafd4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ * AADRoleEligibilityScheduleRequest * Added support for groups assignment. FIXES [#3744](https://github.com/microsoft/Microsoft365DSC/issues/3744) +* EXOCalendarProcessing + * Added support for retrieved groups as calendar delegates. * EXODistributionGroup * Fixes the export of group membership to use Identity. * TeamsUpgradeConfiguration diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_EXOCalendarProcessing/MSFT_EXOCalendarProcessing.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_EXOCalendarProcessing/MSFT_EXOCalendarProcessing.psm1 index feda0a6e44..027f3b7ade 100644 --- a/Modules/Microsoft365DSC/DSCResources/MSFT_EXOCalendarProcessing/MSFT_EXOCalendarProcessing.psm1 +++ b/Modules/Microsoft365DSC/DSCResources/MSFT_EXOCalendarProcessing/MSFT_EXOCalendarProcessing.psm1 @@ -260,8 +260,8 @@ function Get-TargetResource { foreach ($user in $calendarProc.ResourceDelegates) { - $userInfo = Get-User -Identity $user - $ResourceDelegatesValue += $userInfo.UserPrincipalName + $userInfo = Get-Recipient -Identity $user + $ResourceDelegatesValue += $userInfo.PrimarySmtpAddress } }