Commands › Microsoft Teams
Grant-CsCallingLineIdentity
Apply a Caller ID policy to a user account, to a group of users, or to set the tenant Global instance.
Quick start script
# Grant-CsCallingLineIdentity — 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-CsCallingLineIdentity -Group <String> | Format-List
# 3. Export for evidence / drift tracking
Grant-CsCallingLineIdentity | Export-Clixml .\CsCallingLineIdentity-$(Get-Date -Format yyyyMMdd).xml
Syntax — 3 parameter sets
GrantToTenant (Default)
Grant-CsCallingLineIdentity [[-PolicyName] <string>] [-Global] [-PassThru] [-WhatIf] [-Confirm] [<CommonParameters>]
GrantToGroup
Grant-CsCallingLineIdentity [-Group] <string> [[-PolicyName] <string>] [-PassThru] [-Rank <int>] [-WhatIf] [-Confirm] [<CommonParameters>]
Identity
Grant-CsCallingLineIdentity [[-Identity] <string>] [[-PolicyName] <string>] [-PassThru] [-WhatIf] [-Confirm] [<CommonParameters>]
Parameters (8)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.