Forum Discussion
rhelm2024
Sep 01, 2021Iron Contributor
Error applying retention policy to specific user's chats
I am getting an error applying retention policy to a specific user's Teams chats. I'd appreciate any help fixing it. Specifically, I am trying to delete all chats of a specific user (let's call him ...
- Sep 02, 2021So again, what's the deal with his mailbox? And which identifier are you specifying when trying to add him, try the ExternalDirectoryObjectId.
VasilMichev
Sep 01, 2021MVP
Admin privileges should make no difference. Where is the user's mailbox located? You can try adding him to the policy via PowerShell, see if it makes a difference: https://docs.microsoft.com/en-us/powershell/module/exchange/set-retentioncompliancepolicy?view=exchange-ps
rhelm2024
Sep 01, 2021Iron Contributor
Thanks, Vasil, for the suggestion. In PowerShell, I tried both creating the policy from scratch, and adding Dave to a policy I created interactively. I both cases, I got an error message along the following lines:
The specified recipient "Dave" couldn't be found. Reason: The recipient Dave isn't the
expected type.
Followed by a bunch of details specific to our Office 365 instance.
Thanks for helping out here, I really appreciate it.
Rob
The specified recipient "Dave" couldn't be found. Reason: The recipient Dave isn't the
expected type.
Followed by a bunch of details specific to our Office 365 instance.
Thanks for helping out here, I really appreciate it.
Rob
- VasilMichevSep 02, 2021MVPSo again, what's the deal with his mailbox? And which identifier are you specifying when trying to add him, try the ExternalDirectoryObjectId.
- rhelm2024Sep 02, 2021Iron Contributor
VasilMichev Good suggestion! It allowed me to find a workaround in PowerShell.
The ExternalDirectoryObjectId, like the e-mail address, returned "not found", although the error message was different:
Could not find recipient [Dave's ExternalDirectoryObjectId]. If newly created please retry the operation after sometime. If deleted or expired please reset with valid values and try again.
But I tried the same operation with Dave's personal name (not e-mail address) and with that, it worked.
Clearly, there is something odd about this specific mailbox, but we can get around the problem for now.
Thanks again for your help,
Rob