Block members From Deleting The Teams Channel

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, the Team owners and members can delete them from the Microsoft team. In this blog, I would like to show you how to block the Team members from deleting the channels in Microsoft Team.

PATCH  https://graph.microsoft.com/v1.0/teams/<team id>

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

Request Header:  Content-Type: application/json

Request Body

{
    "memberSettings": {
        "allowDeleteChannels": false
    }
}

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

Now Team Members won't be able to delete channels in Microsoft Team.

Output

The below response will be returned after submitting the request.

{}