Skip to content

Commit

Permalink
Merge pull request #4096 from malauter/Fix-3942
Browse files Browse the repository at this point in the history
EXOMailboxPermission: Ignore SendAs permissions during export
  • Loading branch information
NikCharlebois authored Jan 8, 2024
2 parents 5bffb09 + b38409f commit 1f4483b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@
* EXOMailboxCalendarFolder
* Add support for non-English calendar folder names during export
FIXES [#4056](https://github.com/microsoft/Microsoft365DSC/issues/4056)
* EXOMailboxPermission
* Ignore SendAs permissions during export
FIXES [#3942](https://github.com/microsoft/Microsoft365DSC/issues/3942)
* EXOTransportRule
* Fix export of enabled state
FIXES [#3932](https://github.com/microsoft/Microsoft365DSC/issues/3932)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ function Export-TargetResource
Write-Host " |---[$j/$($permissions.Count)] $($permission.Identity)" -NoNewline
$Params = @{
Identity = $mailbox.UserPrincipalName
AccessRights = [Array]$permission.AccessRights.Replace(' ','').Split(',')
AccessRights = [Array]$permission.AccessRights.Replace(' ','').Replace('SendAs,','').Split(',') # ignore SendAs permissions since they are not supported by *-MailboxPermission cmdlets
InheritanceType = $permission.InheritanceType
User = $permission.User
Credential = $Credential
Expand Down

0 comments on commit 1f4483b

Please sign in to comment.