Sep 01 2021 08:52 AM
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 "Dave") after one day. When I try to apply that retention policy, I receive the following error message:
The specified recipient "Dave" couldn't be found. Reason: The recipient Dave isn't the expected type.
I can apply the same policy to other users without error. Dave is licensed for Office 365 E3. The only unusual thing I can think of for Dave is that he has limited administrative rights (Message Center Read, Office Apps admin).
For the record, I have reproduced a summary of the policy below.
Has anyone seen this problem before? Any ideas what I should try next?
(Suggestion was from this thread: https://techcommunity.microsoft.com/t5/microsoft-teams/how-to-permanently-delete-chat-conversation-a...)
Rob
-----
Policy name
Delete Dave's chats
Description
Delete Dave's chats after one day
Locations to apply the policy
Teams chats (1 User)
Retention settings
Delete items at end of retention period
Delete items that are older than 1 days based on when they were created
Sep 01 2021 09:30 AM
Sep 01 2021 09:55 AM
Sep 01 2021 10:53 PM
SolutionSep 02 2021 08:40 AM
@Vasil Michev 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
Sep 01 2021 10:53 PM
Solution