Commands › Microsoft Teams
Grant-CsApplicationAccessPolicy
Assigns a per-user application access policy to one or more users. After assigning an application access policy to a user, the applications configured in the policy will be authorized to access online meetings on behalf of that user.
Quick start script
# Grant-CsApplicationAccessPolicy — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-MicrosoftTeams -CertificateThumbprint $thumb -ApplicationId $appId -TenantId $tenantId
# 2. Run and inspect
Grant-CsApplicationAccessPolicy -Group <String> -Identity <UserIdParameter> | Format-List
# 3. Export for evidence / drift tracking
Grant-CsApplicationAccessPolicy | Export-Clixml .\CsApplicationAccessPolicy-$(Get-Date -Format yyyyMMdd).xml
Syntax — 3 parameter sets
Identity
Grant-CsApplicationAccessPolicy [-Identity <UserIdParameter>] [-PolicyName <String>] [-Global]
GrantToTenant (Default)
Grant-CsApplicationAccessPolicy [-Global] [-PassThru] [-PolicyName <String>]
[-MsftInternalProcessingMode <String>] [-WhatIf] [-Confirm] [<CommonParameters>]
GrantToGroup
Grant-CsApplicationAccessPolicy [-PassThru] [-PolicyName <String>] [-MsftInternalProcessingMode <String>]
-Group <String> [-Rank <Int32>] [-WhatIf] [-Confirm] [<CommonParameters>]
Parameters (9)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.