Where to find messages reported by users in Microsoft Team. ChatMessagePolicyViolationPolicyTip C#

Amit 731 Reputation points
2024-07-01T10:35:06.8166667+00:00

Hi,

With the help of "ChatMessagePolicyViolationPolicyTip" class I block the messages of a particular user. Now this user reported this message to admin.

Now in Microsoft team's admin center, where can I find and approve this message?

I used below C# code to block chat message:

 ChatMessage updatedMessage = new ChatMessage();
 updatedMessage.PolicyViolation = new ChatMessagePolicyViolation()
 {
     PolicyTip = new ChatMessagePolicyViolationPolicyTip()
     {
         GeneralText = "Custom Text to block message",
         MatchedConditionDescriptions = new List<string>() { "Credit Card Number" }
     },
     DlpAction = ChatMessagePolicyViolationDlpActionTypes.BlockAccess,
     VerdictDetails = ChatMessagePolicyViolationVerdictDetailsTypes.AllowFalsePositiveOverride
 };
 var result1 = graphClient.Chats[chatId].Messages[messageId].PatchAsync(updatedMessage).Result;
Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,548 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,030 questions
{count} votes