Prevent Members To Create Private Team Channels

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 create Channels and Private Channels. In this blog, I would like to show you how to prevent the Team members to create private channels.

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": {
        "allowCreatePrivateChannels": 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 create private channels using Microsoft Graph API.

Output

The below response will be returned after submitting the request.

{}