Commands › Microsoft Teams
Get-CsExternalAccessPolicy
Returns information about the external access policies that have been configured for use in your organization.
Quick start script
# Get-CsExternalAccessPolicy — 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
Get-CsExternalAccessPolicy | Format-List
# 3. Export for evidence / drift tracking
Get-CsExternalAccessPolicy | Export-Clixml .\CsExternalAccessPolicy-$(Get-Date -Format yyyyMMdd).xml
Syntax — 2 parameter sets
Identity (Default)
Get-CsExternalAccessPolicy [-Tenant <Guid>] [-Include <PolicyFilter>] [-ApplicableTo <UserIdParameter>]
[[-Identity] <XdsIdentity>] [-LocalStore] [<CommonParameters>]
Filter
Get-CsExternalAccessPolicy [-Tenant <Guid>] [-Include <PolicyFilter>] [-ApplicableTo <UserIdParameter>]
[-Filter <String>] [-LocalStore] [<CommonParameters>]
Parameters (6)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.