Jan 08 2024 11:59 PM
Hello internet,
I know that I can delete orphaned ACEs (ACEs for users who have been deleted w/o removing the ACE first) from the calendar ACL by using
Get-MailboxFolderPermission -Identity <UPN>:\Calendar | Where-Object {$_.User.UserType.Value -eq "Unknown"} | Foreach-Object {Remove-MailboxFolderPermission -Identity <UPN>:\Calendar -User $_.User}
However, whenever there is an active user with the same display name like the orphaned one PowerShell throws an error:
Remove-MailboxFolderPermission: Ex9E65A2|Microsoft.Exchange.Configuration.Tasks.ManagementObjectAmbiguousException|The operation couldn't be performed because '<display name>' matches multiple entries.
Is there any way to get rid of these orphaned ACEs?
Jan 09 2024 12:26 AM