Commands › Microsoft Teams

New-CsApplicationAccessPolicy

Microsoft Teams MicrosoftTeams New-*

Creates a new application access policy. Application access policy contains a list of application (client) IDs. When granted to a user, those applications will be authorized to access online meetings on behalf of that user.

Quick start script

# New-CsApplicationAccessPolicy — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-MicrosoftTeams -CertificateThumbprint $thumb -ApplicationId $appId -TenantId $tenantId

# 2. Capture the current state first — you cannot roll back what you never recorded
$before = Get-CsApplicationAccessPolicy
$before | Format-List

# 3. Make the change
New-CsApplicationAccessPolicy -Identity <XdsIdentity>

# 4. Verify and diff
$after = Get-CsApplicationAccessPolicy
Compare-Object ($before | Out-String) ($after | Out-String)

Syntax

New-CsApplicationAccessPolicy [-Identity <XdsIdentity>] [-AppIds <PSListModifier>] [-Description <String>] [<CommonParameters>]

Parameters (3)

ParameterTypeRequiredWhat it controls
-AppIds PSListModifier A list of application (client) IDs. For details of application (client) ID, refer to: [Get tenant and app ID values for signing...
-Description String Specifies the description of the policy.
-Identity XdsIdentity yes Unique identifier assigned to the policy when it was created.

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.