How to create Teams policies using TAC

This article talks about on how to create Teams policies using TAC

Teams policies:

Teams policies are used to control what settings or features are available to users when they are using teams and channels. You can use the Global (Org-wide default) policy and customize it or create one or more custom policies for those people that are members of a team or a channel within your organization

Lets create it step by step

open Teams admin center aka TAC: https://admin.teams.microsoft.com/

Navigate to Teams –> Teams policies –> Manage policies –> Add

New Teams policy –> give a proper name –> below you will see Teams and channels options –> select whichever is applicable to your business

select created Teams policy and and assign it to the users by navigating in below options

click on group policy assignment

Assign policy to group –> If users of this group have any direct assignments, they will override group assignments.

you can delete create teams policy as well

PowerShell script for below manual task

<#
.SYNOPSIS
  Create or update Microsoft Teams "Teams Policies" (Teams → Teams policies in TAC)
  and optionally assign them to users.

.NOTES
  Requires MicrosoftTeams PowerShell module
  Run with Teams/Global admin permissions
#>

# -----------------------------
# Load & Connect
# -----------------------------
if (-not (Get-Module -ListAvailable -Name MicrosoftTeams)) {
    Install-Module MicrosoftTeams -Scope CurrentUser -Force -AllowClobber
}
Import-Module MicrosoftTeams

Write-Host "Connecting to Microsoft Teams..."
Connect-MicrosoftTeams

# -----------------------------
# Helper function (idempotent)
# -----------------------------
function Ensure-CsTeamsPolicy {
    param(
        [string]$Identity,
        [hashtable]$Settings
    )

    $existing = Get-CsTeamsPolicy -Identity $Identity -ErrorAction SilentlyContinue

    if ($existing) {
        Write-Host "Updating existing Teams Policy: $Identity"
        Set-CsTeamsPolicy -Identity $Identity @Settings -ErrorAction Stop
    }
    else {
        Write-Host "Creating new Teams Policy: $Identity"
        New-CsTeamsPolicy -Identity $Identity @Settings -ErrorAction Stop
    }
}

# -----------------------------
# Define a new Teams Policy
# -----------------------------
$teamsPolicyName = "Contoso_TeamsControl"

# ⚙️ Example settings — adjust as needed
$teamPolicySettings = @{
    AllowUserCreateUpdateChannels     = $true
    AllowUserDeleteChannels           = $false
    AllowUserEditMessages             = $true
    AllowUserDeleteMessages           = $true
    AllowUserCreatePrivateChannels    = $false
    AllowUserCreateSharedChannels     = $true
    AllowEmailToChannel               = $false
    AllowGiphy                         = $true
}

# -----------------------------
# Create or update the policy
# -----------------------------
Ensure-CsTeamsPolicy -Identity $teamsPolicyName -Settings $teamPolicySettings

Write-Host "Teams Policy creation/update completed."

# -----------------------------
# OPTIONAL: Assign the policy to a user
# -----------------------------
$userToAssign = ""  # example: "user@contoso.com"

if ($userToAssign) {
    Write-Host "Assigning Teams Policy to $userToAssign"
    Grant-CsTeamsPolicy -Identity $userToAssign -PolicyName $teamsPolicyName
}
else {
    Write-Host "No user assignment specified. Add a UPN to variable `$userToAssign` to auto-assign."
}

Conclusion:

Post reading above article reader will be able to create Teams policies using TAC

Also Read  Teams logs: How to capture and analyze them like master

also you can read https://microbrother.com/how-to-manage-teams-settings-in-teams-admin-centr/ this article to manage Teams settings in TAC

Thank you 😇

Leave a Comment