Restrict Owners From Deleting Chat Messages In Team

Microsoft Team is a communication product/service from Microsoft 365. This helps the user to connect and communicate between the users within the organization or external Organization. There are two sets of user types within an Organization for a Team. Those are Owners and Members.

By default, Team Owners can delete any chat messages posted in Team Chat. In this post, I would like to show you how to restrict the owners from removing or deleting the messages after those posted to the Team Chat for the particular Microsoft Team.

Teams UI

Follow the below Steps in Microsoft Team Administration site to block the Chat messages deletion option for the Owner,

  • Navigate to Microsoft Team Admin Center,
  • Expand Teams in Left Navigation
  • Click Manage Team option from expanded Teams menu

  • Select the Team and Click Edit button from the List of available teams
  • From the opened right side panel, expand Member permissions
  • Change the toggle to Off for Team owners can delete sent messages
  • Then click Apply button.

Microsoft Graph API

We can also use the Microsoft Graph API to do the same action. Use the below options in Microsoft Graph Explorer to block the same option.

Microsoft Graph API EndPoint

PATCH<team id>

Consent Permission

Delegated Permission: TeamSettings.ReadWrite.All, Group.ReadWrite.All**, Directory.ReadWrite.All**

The below request headers should be sent along with the request to update the settings,

Request Header

Content-Type: application/json

Request Body

    "messagingSettings": {
        "allowOwnerDeleteMessages": false

In Microsoft Graph Explorer, click Run Query to send the request and update the settings for the Team.


Now Team Owners won't be able to delete the messages once those are posted to the Microsoft Team Chat for a particular Team. The below response will be returned after submitting the request.


Similar Articles