Commands › Microsoft Teams
New-CsApplicationAccessPolicy
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)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.